Placeholder attribute not supported in IE. Any suggestions?

后端 未结 6 2091
走了就别回头了
走了就别回头了 2020-12-30 02:22

What do you all use to support placeholder attributes in browsers?

Currently, am using:

https://github.com/mathiasbynens/Placeholder-jQuery-Plugin

Ha

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-30 03:05

    In fact none of the IE's as of Oct 19th 2011 support the placeholder attribute. I've tested it in 7, 8, and 9 and none of them seem to recognize it. You'd think ie9, seeing as how it's supposed to support css3 and html5 would have fixed this but it does not appear so.

    As a simple workaround that isn't pretty but gets the job done you can use some javascript like this:

    
    

提交回复
热议问题