![]() Topic awaiting preservation: validating radio buttons (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: Ny |
![]() Hi. I am having a real problem with this. I just can't understand this coding. |
Paranoid (IV) Inmate From: France |
![]() Radio buttons have the same id/name but are separete elements. You must browse each radio button element, test the checked property of those with the id you want to validate. If the value is true for one of them, you're done. |
Paranoid (IV) Mad Librarian From: Glienicke |
![]() Some more pointers on how to deal with radio buttons in JS: |
Nervous Wreck (II) Inmate From: Ny |
![]() I feel so dmb today. This is what I have so far. Now do I put the array under this? I am still a beginner and some things are still fuzzy to me. |
Paranoid (IV) Inmate From: France |
![]() Does your code work somewhere else than in IE if at all ? code: function process() You should have a look at the |
Nervous Wreck (II) Inmate From: Ny |
![]() Hey poi thanks for the code. I can't get it to work for some reason. I edited where I was suppose to but no error message comes up when I submit the form. Here is my JS coding with your code edited for my form. |
Paranoid (IV) Inmate From: France |
![]()
|
Nervous Wreck (II) Inmate From: Ny |
![]() Okay well I moved the code down into it's own script section. It still doesn't work. I'm very slowwww this week because I'm sick so I guess I'm just not getting it. |