html5 moraga – 6:43 pm

Placeholder plugin for jQuery

Placeholder its a new attribute of HTML5. Your functionality is add label inside inputs when empty. >input type=”text” placeholder=”Enter your name here!” /> Some browsers like Firefox in version 3.6 doesn’t have support for this attribute. The code below is an plugin for jQuery that simulate placeholder. (function($) { $.fn.extend({ placeholder: function() { return this.each(function() [...]