August 1999
Intermediate to advanced
1488 pages
72h 53m
English
radio.checked
The checked property of the Radio object is a Boolean value used to determine whether a radio button is in a checked or unchecked state.
Listing 7.432 shows an example of how to determine whether the radio button is checked by using the checked property.
<html> <head> <title> Example of the radio checked property</title> </head> <body> <script language="JavaScript"> <!-- Hide // function looks to see if button 1 is checked and displays // an appropriate alert message. function checkButton(){ if(document.form1.button1.checked == true){ alert("Box1 is checked"); } else if(document.form1.button2.checked ... |
Read now
Unlock full access