How to support placeholder attribute in IE8 and 9

132

I have a small issue, the placeholder attribute for input boxes is not supported in IE 8-9.

What is the best way to make this support in my project (ASP Net). I am using jQuery. Need I use some other external tools for it?

Is http://www.hagenburger.net/BLOG/HTML5-Input-Placeholder-Fix-With-jQuery.html a good solution?

This question is tagged with html internet-explorer placeholder

~ Asked on 2013-02-22 09:30:02

The Best Answer is


89

You could use this jQuery plugin: https://github.com/mathiasbynens/jquery-placeholder

But your link seems to be also a good solution.

~ Answered on 2013-02-22 09:32:33


89

You can use any one of these polyfills:

These scripts will add support for the placeholder attribute in browsers that do not support it, and they do not require jQuery!

~ Answered on 2013-02-22 09:51:56


Most Viewed Questions: