jQuery HTML5 Placeholder Plugin
A 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.
Get Code
Usage
$('input[placeholder], textarea[placeholder]').placeholder();
| IE | Firefox | Safari | Chrome | Opera | iPhone | Android |
|---|---|---|---|---|---|---|
| · | 3.7+ | 4.0+ | 4.0+ | · | · | · |
| IE | Firefox | Safari | Chrome | Opera | iPhone | Android |
|---|---|---|---|---|---|---|
| 6+ | 3 + | 3.0+ | ✓ | ✓ | ✓ | ✓ |
Demo
Below are two examples of the plugin in action.