A plugin that enables HTML5 placeholder support for legacy browsers
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.rst
demo.html
jquery.placeholder.js

README.rst

Placeholder plugin for jQuery

A jQuery plugin that enables HTML5 placeholder support for legacy browsers

The HTML5 placeholder attribute is awesome, unfortunately only supported by some browsers. This plugin replicates the placeholder behavior for unsupported browsers.

  • Checks for placeholder support before running
  • Tested in IE (6,7,8).
  • Works with password inputs

Usage

It's easy!:

$(':text[placeholder],:password[placeholder]').placeholder();

Enjoy.