I have a yes and no radio button on a application form and if a user checks "Yes", then I want to make then fill in the explanation field. I am trying to verify onsubmit if the radio button "Yes" is checked, then show message and set focus on explain, but it does not seem to do this. I am using Frontpage to validate these fields.
if(theForm.license_denied[0].checked)
{
alert("You must give explaination"
theForm.A_explain.focus();
return (false);
}
this in inside my validation function that checks all my required fields on the form. I am not even getting in to this if statement. What am I doing wrong???
if(theForm.license_denied[0].checked)
{
alert("You must give explaination"
theForm.A_explain.focus();
return (false);
}
this in inside my validation function that checks all my required fields on the form. I am not even getting in to this if statement. What am I doing wrong???