Home >Web Front-end >HTML Tutorial >Introduction to the functions and differences between disabled and readonly_HTML/Xhtml_Web page production
1: Readonly is to lock this control and cannot modify it through the interface (but it can be modified through javascript).
2: Disabled and readonly are similar in that they can lock the control and users cannot change its value, but disabled is more thorough. It means that you cannot use it at all, including changing its background color. (If you don’t believe it, if you try to modify a disabled input text box, you will find that your efforts are in vain). If it is a checkbox, you cannot select it.
3: All controls have the disabled attribute, but not necessarily the readonly attribute. Such as select drop-down box