I have a set of radio buttons in a CFFORM where the user can choose Yes or
No. I need to make sure they fill in another field if they have chosen the
"yes" radio button. I'm not sure if I'm going about checking to see if it
is checked "yes" the right way. I have "If (form.radiobutton.value == "Y")
Is there some other way like form.radiobutton.value.checked or something
like that? Here is my javascript below...the radiobutton in question is
named "degreed_fl".
Thanks, KIm
function auditBSBA(form) {
var submitForm=true //-- Changes to false when bad field found.
if (form.degreed_fl.value == "Y") {
if (form.schl_grad.value == "") {
window.alert("Please provide the name, city and state of the school
where you received your BS or BA degree");
submitForm=false;
form.schl_grad.focus();
}
}
if (submitForm==true) {
//-- The statement below submits the form, if all OK.
document.BSBAQuestions.submit()
}
}
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.