I can't find my way round the IE DOM to read the value of a set of 5 radio buttons I have. They are all named "rooms" and have values from 1 to 5.
I need to compare the form with a predefined list of objects that are in an array. The script goes like this
for(i in place){
if(place.room==document.all.form1.rooms.????){
}
}
Where place.room is a property of my object and form1.rooms is an attempt to refer to the radio button set.
The other elements of form1 work fine but they are textboxes, select elements and checkboxes.
Does anyone know how to do this??
Thanks
WuCong
I need to compare the form with a predefined list of objects that are in an array. The script goes like this
for(i in place){
if(place.room==document.all.form1.rooms.????){
}
}
Where place.room is a property of my object and form1.rooms is an attempt to refer to the radio button set.
The other elements of form1 work fine but they are textboxes, select elements and checkboxes.
Does anyone know how to do this??
Thanks
WuCong