readonly versus disabled

I couldn’t seem to find a good breakdown on this anywhere and had to see what would happen trial and error.

  • readonly="1" will show a standard form element, however it will not be editable. Data will, however, be submitted.
  • disabled="1" will gray-out the form element. Data will not be submitted with the rest of the form.

At least, this is what Firefox does.

Tags: , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Possibly Related:


Leave a Reply