[thelist] clear form code

Matt Warden mwarden at gmail.com
Mon Mar 20 10:13:30 CST 2006


> > You asked for a valid reason for using the Reset button, and I
> > provided one - resetting radio buttons that do not have either a
> > default state, or a "none selected" option.

This is actually an invalid use of radio buttons. See:

http://www.w3.org/TR/REC-html40/interact/forms.html#radio

What reset *is* useful for is taking a form back to its initial
values. It is not a "clear form" button, unless the initial state of
the form is valueless.

You *might* be able to get the same results by hitting "refresh", but
this might not always be possible (e.g., when resending post data
could be harmful or might fail the second time -- like in user
registration). A lot of times an app developer will add a "cancel" or
"back" button, but this is a recreation of functionality that already
exists (depending on the context) in the reset button.

--
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.



More information about the thelist mailing list