Input and textarea placeholders with jQuery

Let’s face it, the HTML5 placeholder attribute is awesome. If only all browsers supported it we wouldn’t need to spend time writing fixes to plug gaps in older browsers. The script I’ve written here can be used in conjunction with modernizer with a little editing to actually use the html5 placeholder attribute for browsers that support it and javascript for those without. However sometimes we don’t have time to get caught up with details so we just need something that works across all browsers.