简体   繁体   English

应用遮罩时,IE 9中的只读属性不起作用

[英]Readonly property not working in IE9 when masking is applied

Masked Phone number text field becomes editable even though its applied with readonly property. 即使已屏蔽的电话号码文本字段应用了readonly属性,该字段仍可编辑。

How to solve this issue. 如何解决这个问题。 It happens only in IE9 browser. 它仅在IE9浏览器中发生。

 $("#stdphone").attr('readonly', true)

如果可以在IE9中使用,请尝试以下方法:

$("#stdphone").attr('readonly', 'readonly');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM