Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What am I missing in the following code...

Status
Not open for further replies.

axsom1

Technical User
Feb 27, 2001
67
US
Here is the code that I just don't get what I'm missing. With this code in my function, anything below it does not get processed...

if (document.form1.Ed_HS_Graduate[1].checked && !document.form1.Ed_Ged[0].checked && !document.form1.Ed_Ged[1].checked)
{
alert("Please tell us if you have your GED or not.");
document.form1.Ed_Ged[0].focus();
return false;
}

Any help would be great!
Thanks,
John Axsom
 
can we see the whole code inside the function???
 
Your return statement halts execution and returns false as the result of the function.
 
Sorry, I should have read what I typed before submitting. The whole function is just check my form prior to sending it off to be processed. Now, there are other required fields that need to be processed after this one. What happens, is with this code in the function, once I get to this point, none of the fields referenced in the function after this code gets checked. It processes the form.

What I'm trying to do is just make sure that if one radio gruup is selected a certain way that they are forced to select from the next radio group. Maybe I'm going about it all wrong...

Thanks,
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top