[thelist] JS Form validation - Radio buttons

.jeff jeff at members.evolt.org
Thu Jun 21 22:31:36 CDT 2001


chris,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: CDitty
:
: Can anyone tell me what is wrong with this function?
:
: [...]
:
: if(form.userid.unchecked == false)
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

there's no such property as "unchecked" for a radio button (there is in ie,
but only as an expando property -- yummy).  you should try "checked"
instead:

if(form.userid.checked)

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the thelist mailing list