New version of the jQuery Placeholder Plugin released

I have released a new version (0.3 0.4) of my jQuery Placeholder Plugin, which emulates the HTML5 placeholder attribute in browsers that do not support it.

Well, I say my plugin, but the majority of changes and fixes were made by Mal Curtis, so all I have done is merged them in and updated the documentation. In fact, I reckon he has now wrote most of the code ;-)

For a full list of updates, check out the CHANGES file. Note that there have been a lot of changes, so take care if you are upgrading.

jQuery Placeholder Plugin Released

The jQuery Placeholder Plugin provides support for the placeholder HTML5 attribute in browsers that do not support it.

To use it, include the JS and CSS in your page and do the following:

<input type='text' placeholder='Some placeholding text' />

In browsers that support the placeholder attribute (currently Firefox 3.7+, Chrome 4.0+ and Safari 4.0+), the plugin will do nothing, letting the browser render it natively. In browsers that do not support it, the plugin will emulate support using JavaScript.

Thats all it does. I use this plugin wherever I wan’t to use some placeholder text (including this site, in the search box).

For more information, see the plugins home page. The code is available on GitHub and is available under the MIT License.