Re: problem with validating input value
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: problem with validating input value

From: Ed Jay <edMbj@aes-intl.com>
Date: Wed Jan 25 2006 - 09:23:29 CET

Jasen Betts <jasen@free.net.nz> wrote:

>On 2006-01-23, RobG <rgqld@iinet.net.au> wrote:
>> marss wrote:
>>>
>>> If you add attribute "checked" to one of this radio buttons you achieve
>>> required result without any script.
>>
>> Yes, that is correct but it's a constraint that doesn't fit with how
>> most would like to use radio buttons. In most forms it is a requirement
>> of the designer that neither be selected by default and that only one
>> can be selected.
>>
>> So you are caught between using radio buttons with none selected by
>> default and a script to ensure one is selected, or checkboxes with
>> script to ensure only one is selected.
>>
>> Damned if you do, damned if you don't.
>
>add an extra radio button with style="display:none" and make that checked.

Didn't work for me. The button wanted to be visible to be part of the
button array.

-- 
Ed Jay (remove M to respond by email)
Received on Tue Feb 7 21:22:14 2006