> > Marshall Dudley said:
> [...]
[quoted text clipped - 11 lines]
> checkable element is indicated, it should be a checkbox. Try to uncheck
> a solitary radio button.
No, it should never be unchecked, that would make the script fail. We have a
case where the store owner selects which credit cards he wants to allow, Visa,
Mastercard, Discover or Amex. If he only selects one, then only that one
should be allowed, if none were selected the the card will not get processed
properly.
> One radio button should always be selected (but browsers don't enforce it).
Yes it will be preselecrted.
> Once a single button is selected, there are no others to check so
> you can't uncheck a solo button it without re-setting the form.
Don't want to allow it to be deselected if there are no other choices.
> Some
> browser developer may also decide to check the first radio button by
> default if the page author hasn't decided which one should be checked by
> default (I don't know of any that do so, but the specification could be
> interpreted that way).
The script always selects the first button (even if the only button) as
selected.
Marshall
> <URL:http://www.w3.org/TR/html4/interact/forms.html#radio>
>
> [...]
>
> --
> Rob
Lee - 30 Sep 2005 14:59 GMT
Marshall Dudley said:
>> Further, radio buttons should never be used singly. If a single
>> checkable element is indicated, it should be a checkbox. Try to uncheck
[quoted text clipped - 5 lines]
>should be allowed, if none were selected the the card will not get processed
>properly.
So you're generating the page. That means that you can generate (or at
least modify) the script on the page. If there is only one card type
available, don't bother to check to see what it is on the client side.
> Further, radio buttons should never be used singly. If a single
> checkable element is indicated, it should be a checkbox. Try to uncheck
> a solitary radio button.
I think if there is only one choice, then there should not be any radio
button (or checkbox) visible for it. The choice is implied automatically.
Robert.