"Jukka K. Korpela" <jk******@cs.tut.fiwrites:
Or best just get rid of disabled controls. What's the point anyway?
Why would you show the user something that looks somewhat like a form
field but does not get submitted along with a form (and cannot be
modified).
I agree that writing the disabling into the HTML is pointless, but not
that being able to disable a control necessarily is.
....
<input type='checkbox' name='q4' value='other'Other (please state)
<input name='q4other' size='40'>
....
It might be a reasonable optional enhancement to this form to use
Javascript to initially set the 'other' <inputto be disabled (which
obviously can't be set as an initial state in the HTML), and then
enable and disable this as the relevant checkbox is used. Similarly
for complex data-collection requirements (e.g. checkbox F is only
available if two or more of checkboxes A, B and C are selected) where
it might help the user's mental model of the data. All optional and
backed up by the same logic server-side, naturally.
Whether this is more or less usable than modifying q4other's display
style between inline and none I'm not sure - I'd have to try both out.
--
Chris