View Single Post
  #3  
Old 12-29-2006, 04:06 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by xXziroXx View Post
PHP Code:
for (0numberofradiobuttons++) {
  if ((
"Radio_Button" i).checked == truetemp.checked ++;
}
if (
temp.checked == numberofradiobuttons) {
  
// all buttons are checked!

Just an example on how to check if all of them are checked.
Radio buttons are only supposed to allow one to be selected from a group.

This might be more accurate:
PHP Code:
temp.buttons = {"Radio_Button1""Radio_Button2""Radio_Button3"};

for (
temp.buttontemp.buttons)
{
  if ((@ 
temp.button).checked)
  {
    
// This is the checked button, so do whatever and stop the loop
    
break;
  }

__________________
Skyld
Reply With Quote