input-placeholder-polyfill
Version:
A simple polyfill for IE8 and 9 that populates the value when empty
18 lines (11 loc) • 458 B
Markdown
input-placeholder-polyfill
==========================
A simple polyfill for IE8 and 9 that populates the value of an input field with the placeholder, without the need for an external library.
# Install
## NPM
`npm install --save input-placeholder-polyfill`
## Bower
`bower install input-placeholder-polyfill`
# Use
It's as easy as adding the item to the page with script tags.
We use feature detection so if you have native support we do nothing!