Menu
I use the following function to put a value in a form field based on a selection from a dropdown menu (select yes/no). The user wants to change the select menu to radio buttons. I’m stuck on what needs to be changed to accomodate the radio buttons? Any help is greatly appreciated.
function CM3func(){
if (document.form1.CM3.value == “Yes”) {
document.form1.CM3score.value = 1;
} else if (document.form1.CM3.value == “No”) {
document.form1.CM3score.value = 0 ;
} else {
document.form1.CM3score.value = ” “;
}
}