Posts for the tag: placeholder

HTML5 Placeholder Support for IE9

Modern web applications use HTML5 placeholders to give a hint to the user about what to enter in a field.

<input type="text" placeholder="Enter your name" id="name"/>

The latest versions of all modern browsers support this attribute, but older versions of internet explorer (<IE10) don’t support it. This little snippet will add support for the placeholder attribute in browsers who lack this HTML5 feature.