1.0.0 • Published 8 years ago
rs-placeholder v1.0.0
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"));
1.0.0
8 years ago