Fallback for browsers which do not support the placeholder attrbute
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
placeholder-fix.js
readme.md

readme.md

Placeholder fix

The placeholder attribute has been introduced in HTML5 specifications for input and textarea elements. The placeholder text is shown when the element is empty and not focused. However, some browsers do not support this attribute. This fix is a fallback until the placholder attribute is fully supported in all browsers.