Posts Tagged ‘disabled’

readonly versus disabled

Thursday, April 10th, 2008

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.