In which case you can use the more widely used placeholder plugin to make the HTML5 placeholder attribute work in browsers like IE that don't support it.
I'd rather use the HTML5 attribute and add the placeholder plugin for browsers that don't support it. Placeholder has been around a lot longer and is more widely used and tested.
3
u/[deleted] Apr 22 '12
you dont need jquery: http://davidwalsh.name/html5-placeholder
edit: except for IE ...