set placeholder for internet explorer?

This question already has an answer here:

  • Input placeholders for Internet Explorer 17 answers

  • IE9 and earlier don't support the placeholder attribute. It's in IE10+.

    There are a number of JavaScript solutions out there, if you look for "placeholder shim" or similar. For instance, I did the place5 jQuery plug-in, but that won't help you if you don't use jQuery. But again, there are several others out there. This question and its answers list several.


    You can have the placeholder displayed in IE browsers too. Use this plugin, it's probably the simplest method.

    Works in all A-grade browsers, including IE6.

    Good luck!

    链接地址: http://www.djcxy.com/p/70546.html

    上一篇: 如何在IE8和9中支持占位符属性

    下一篇: 为Internet Explorer设置占位符?