Yet another HTML5 placeholder shim plugin
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
reactive.js

README.md

input-placeholder

Yet another HTML5 placeholder shim plugin.

There are a ton of plugins trying to emulate HTML5's placeholder attribute. This is yet another one.

Key features:

  1. Does not delete a field's content when focused.
  2. No messy CSS tricks required.

See this fiddle.

Cons:

  1. Immature
  2. Doesn't use the placeholder attribute/syntax, but rather uses the value attribute.
  3. Two known bugs:
  4. 1. In IE, selecting the default text will be weird
  5. 2. In all browsers except Firefox, tabbing into the default text will cause a flickering effect.

Usage:

<input name='email' value='Email Address'>