the read only property is not able to disable using jquery
This question already has an answer here:
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.
上一篇: 禁用文本输入Google App脚本
下一篇: 只读属性无法禁用使用jquery