jQuery Placeholder

A full featured jQuery plugin that emulates the placeholder attribute for web browsers that do not natively support it. If the browser does support it, the plugin does nothing.

Extra attention has been paid to make sure that elements behave correctly when used in conjunction with a jQuery front end in a web application.

$('input').placeholder();

For best results use in conjunction with livequery (by Brandon Aaron)

$('input').livequery(function(){
  $(this).placeholder();
});

When being used with other jQuery code, this plugin acts just like an HTML5 placeholder element. Forms do not submit placeholder data, and the jQuery val() method does not return placeholder data. Very Nice.

Initially forked from https://github.com/andrewrjones/jquery-placeholder-plugin

Example


Download

Download it at GitHub: https://github.com/snikch/jquery-placeholder-plugin