Difference between disabled and read only attributes
Disabled attribute
- Disabled form fields or elements values don’t post to the server for processing.
- Disabled form fields or elements don’t get focus.
- Disabled form fields or elements are skipped while tab navigation.
- Some browsers (Like IE) provide default style (Gray out or emboss text) for disabled form fields or elements.
Read Only Attribute
- Read Only form fields or elements values post to the server for processing.
- Read Only form fields or elements get focus.
- Read Only form fields or elements are included while tab navigation.
- Some browsers do not provide default style for Read-Only form fields or elements.
No comments:
Post a Comment