![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hello, I am learning JavaScript. I created radiobutton group: input type="radio" name="building_type" value="N">new</input input type="radio" name="building_type" value="O">old</input input type="radio" name="building_type" value="" checked>n/a</input and I want to test selection in javascript: if (document.announcement.building_type.value != "") ... My problem is that - whatever is selected - document.announcement.building_type.value is undefined. |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hello, I am learning JavaScript. I created radiobutton group: input type="radio" name="building_type" value="N">new</input input type="radio" name="building_type" value="O">old</input input type="radio" name="building_type" value="" checked>n/a</input and I want to test selection in javascript: if (document.announcement.building_type.value != "") ... My problem is that - whatever is selected - document.announcement.building_type.value is undefined. I expected "N", "O", "". Please help. /RAM/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |