This is a jQuery plugin to use with Modernizr for older browsers to behave HTML 5 placeholder attribute. Must be used with Modernizr to test placeholder attribute, but it doesn't do any harm if checking for placeholder attribute is not there :-).
HTML 5 placholder attribute generates nicely embedded watermark effect to your form fields like input, or textarea. Only the latest browsers supports this effect, but using placeholder.js plugin with Modernizr will make similar effect for the older browsers.
if(!Modernizr.placeholder){ $("form").placeholder(); }
There are two CSS attributes you can use. By default, font-style will be italic and color will be #ccc. However, to override those options, you could do the following.
$("form").placeholder({'font-style':'normal', 'color':'#f2f2f2'});
MIT license