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.

HTML5 – The New Web 2.0

HTML5 Logo

HTML5 got its own logo today from the W3C (see right), which I quite like. But what I think is really interesting is the general acceptance that its not just a technology anymore. Its a collection of technologies. Its a movement[1]. Its a buzzword.

I am already seeing HTML5 more often in marketing; HTML5 apps, HTML5 games, etc. I think its going to get used more and more by people who don’t really understand what it is until we all forget about the technology and becomes just another buzzword. Just like Web 2.0.

References

  1. Tim O’Reilly on Twitter []

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.