Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

yields/placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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