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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.