|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
If List is the name of a radiobutton group, then how can I see which option is checked?
document.getElementsByName('List').checked.value doesn't seem to work? I'm not good at JS, I just used it a couple of times, once for a selectbox where I could just check what was selected by using :document.getElementById('Select').selected.value Is there something like that for radiobuttons too? |
|
#2
|
||||
|
||||
|
A group of radio buttons is a collection which you need to loop through, and test the checked property.
http://www.jennifermadden.com/162/e.../loopRadio.html http://codepunk.hardwar.org.uk/ajs19.htm |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Radiobutton is checked? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|