[thelist] opposite of checked="checked"

Jeff Howden jeff at jeffhowden.com
Tue Jun 21 14:56:56 CDT 2005


> From: Brian Cummiskey
> I have a form with a bunch of radio buttons among other
> form elements, where, on page load, i want to basically
> re-set all the radio buttons to NOTCHECKED.

Actually, as radio buttons are mutually exclusive, there really isn't such a
thing as a group that doesn't have one checked.  I know that HTML and most
browsers allow you to define a group without one of them checked, but
therein lies the rub.  What if the user decides they want to return the
group back to its default state without resetting the form?  Unfortunately
for them, it's not possible.  However, starting out with one always checked
removes this issue.

 [>] Jeff Howden
     jeff at jeffhowden.com

More information about the thelist mailing list