Fix HTML5 placeholder attribute in IE 8 & 9

Anyone who has encountered the HTML5 placeholder attribute, knows it is a great time saver over trying to manually load a label element into a HTML form input.

 

The Problem is that IE8 (and very annoyingly, IE9) don't have placeholder support. This has proven quite annoying, but then I stumbled across this neat little fix earlier that seems to work great:

 

http://www.hagenburger.net/BLOG/HTML5-Input-Placeholder-Fix-With-jQuery.html

 

Hopefully someone will find this useful, though by default this fix doesn't work with password input. There are a couple of solutions in the comments, such as changing the input type or cloning the element. I haven't tried any of these out as of yet though.