the read only property is not able to disable using jquery

This question already has an answer here:

  • Disable/enable an input with jQuery? 11 answers

  • The value of the disabled attribute does not matter. If it is in the attribute list, the element will be disabled regardless of whether it is false or true or empty. You need to remove the attribute to enable it back.

    Use $("#name").removeAttr('disabled') is re-enable the element.

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

    上一篇: 禁用文本输入Google App脚本

    下一篇: 只读属性无法禁用使用jquery