rs-placeholder
v1.0.0
Published
Simple html placeholder attribute polyfill for old browsers
Maintainers
Readme
placeholder html attribute polyfill
Cross browser placeholder support for input text boxes that uses CSS3 placeholder attribute where available and a psuedo placeholder if not. Tested back to IE6.
Ultra-light weight native JavaScript, no 3rd party libraries required.
Usage:
new placeholder("placeholder text", "elementid");or
new placeholder("placeholder text", document.getElementById("id"));