我正在使用jquery水印插件,它在所有浏览器中都能正常工作,但在IE8中却没有。
在其他浏览器中,水印文本被视为空白,但在IE8中,水印文本不被视为空白,因此相关验证在IE8中不起作用。
有人能告诉我如何修复这个错误吗?或者它是IE8中的bug,任何解决方案?
发布于 2013-10-16 18:44:02
使用这个插件
http://andrew-jones.com/jquery-placeholder-plugin/jquery.placeholder.js?0.7.0
$(function () { $(":input[placeholder]").placeholder();});
<input style="width:128px;" type="text" id="DFrom" value="" placeholder="Here is your water mark" />https://stackoverflow.com/questions/19398770
复制相似问题