Skip to content

jethrolarson/placeholder-augment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Augments and polyfills the html5 placeholder attribute.

When you focus a field it keeps the placeholder text until you start typing. This keeps users from forgetting what the field is before they start typing.

Usage:

  1. include js
  2. add placeholder attribute to fields you want
  3. invoke plugin with window.initPlaceholder()

Demo: http://jethrolarson.github.io/placeholder-augment/

License: MIT or WTFPL whichever you prefer

Note: I've not updated this in a while so I'm not sure if browser support is up to 2013 standards. Feel free to contribute.

About

Augments and polyfills the html5 placeholder attribute.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published