Monday, 25 February 2013

Difference between disabled and read only attributes


Disabled attribute

  1. Disabled form fields or elements values don’t post to the server for processing.
  2. Disabled form fields or elements don’t get focus.
  3. Disabled form fields or elements are skipped while tab navigation.
  4. Some browsers (Like IE) provide default style (Gray out or emboss text) for disabled form fields or elements.

Read Only Attribute

  1. Read Only form fields or elements values post to the server for processing.
  2. Read Only form fields or elements get focus.
  3. Read Only form fields or elements are included while tab navigation.
  4. Some browsers do not provide default style for Read-Only form fields or elements. 

No comments:

Post a Comment