Javascript

jQuery – Helpful Default Input Values

Posted in Javascript, jQuery on December 6th, 2009 by Brandon Buttars – 1 Comment

I’ve recently wanted to try and use some different code to add some default values to my input fields, especially the search box.  Most code I’ve seen does some type of a label overlay which involved a lot of freaking code.  I finally found some code and did a little tweaking to it to fit my situation.  You can also find it under my Snipplr code.

read more »

CSS HTML Class – Browser and Operating System

Posted in CSS, Javascript on December 6th, 2009 by Brandon Buttars – Be the first to comment

I was trying to find a good snippet of code that would help me style the different browsers better.  I’ve used all the attribute hacks before but one thing I’ve run into lately is the fact that Chrome and Safari end up interpreting and displaying input tags differently even though they are both Webkit based. There were not individual attribute hacks that I could find, but I was able to find this beauty over at http://github.com/rafaelp/css_browser_selector. I’ve also added the code to my Snipplr Arsenal so you can get it over at http://snipplr.com/view/23988/adds-os-and-browser-class-to-html-tag/

read more »