IE9 HTML5 placeholder - how are people achieving this?

前端 未结 3 1503
一个人的身影
一个人的身影 2021-01-12 21:59

I\'m trying to use the placeholder=\"xxx\" attribute in my web application, and I don\'t want to have a special visual for IE9. Can people throw out some good s

3条回答
  •  广开言路
    2021-01-12 22:29

    Here's a jQuery plugin that works with password fields as well. It's not as tiny as the code suggested by Matthew but it has a few more fixes in it. I've used this successfully together with H5Validate as well.

    http://webcloud.se/code/jQuery-Placeholder/

提交回复
热议问题