Friday 2 July, 2010

Clearing one group of radio buttons (Javascript)



function clearRB(buttonGroup)
{
for (i=0; i <>
if (buttonGroup[i].checked == true) { // if a button in group is checked,
buttonGroup[i].checked = false; // uncheck it
}
}
}



call the above function on button click or dropdown change

Dropdown
  1. onchange="return clearRB(rbtnlstAuthCode);"
ButtonClick
  1. onclick="return clearRB(rbtnlstAuthCode);""

No comments:

Post a Comment