Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Placeholder for older browsers.
JavaScript CSS
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
example.html
index.js
placeholder.css

Readme.md

placeholder

Placeholder for older browsers.

tested on - ie7 - ie8 - ie9

Installation

$ component install yields/placeholder

Example

It adds .placeholder class when the placeholder is active, it is styled with a color of #a8a8a8 by default.

var placeholder = require('placeholder')
  , textarea = document.getElementsByTagName('textarea')[0]
  , input = document.getElementsByTagName('input')[0];

placeholder(textarea).set('textarea');
placeholder(input).set('input');

License

MIT

Something went wrong with that request. Please try again.