It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

From List menu to radio buttons - Newbie Needs Help

From List menu to radio buttons - Newbie Needs Help

Postby Chamark on Thu Jan 17, 2008 4:36 pm

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 = " ";
}
}
Chamark
 
Posts: 0
Joined: Thu Jan 17, 2008 4:29 pm

Who is online

Users browsing this forum: No registered users and 7 guests