What is the difference between disabledreadonly and disabledreadonly?
What is the difference between disabled and readonly:
These two attributes are similar, but the difference is huge. The reason for this is that both attributes seem to be able to set the specified element to the "unavailable" state, the following is a brief introduction of the differences between them, hoping to help you.
I. Different functions:
The disabled attribute can use all form elements.
The readonly attribute is valid only for <input type = "text">, <textarea>, and <input type = "password">.
2. Different Effects on elements:
The disabled attribute prevents all operations on elements, such as getting focus and clicking events.
The readonly attribute only sets the element to read-only. Other operations are normal.
3. submit expressions:
The disabled attribute prevents the value of the form element from being submitted.
The readonly attribute does not affect the submission.
The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 9495.