Monday, July 18, 2011

Get the value of a radio buttton group using javascript

for (index=0; index < document.form1.del_add_choice.length; index++) {
if (document.form1.del_add_choice[index].checked) {
var radioValue = document.form1.del_add_choice[index].value;
break;
}

}
alert(radioValue);
return false;

No comments:

Post a Comment