JQuery HTML5 placeholder fix

One of the nifty new features of HTML5 is the placeholder for forms which is added by putting in a placeholder value.

<input type="email" placeholder="example@kamikazemusic.com" />

So I can use this everywhere I’ve just written a quick bit of jQuery to replicate the placeholder functionality in browser that don’t support. It also uses Modernizr to check if the browser already supports the placeholder technique.

Continue reading