I'm working on a project and I want to use the following function to check if the user has filled out the needed steps:
When I load it, I get a 'Syntax Error' message on the first 'else if' statementCode:function stepCheck() { if (!(document.OnlineForm.cardoption[0].checked == true || document.OnlineForm.cardoption[1].checked == true)) alert("Please Select A Payment Option Under Billing Info."); }else if(!(document.OnlineForm.shipping[0].checked == true || document.OnlineForm.shipping[1].checked == true || OnlineForm.shipping[2].checked == true)){ alert("Please Select A Shipping Option."); }else if(!(document.OnlineForum.tou.value == true)){ alert("Please Accept The Terms of Use."); }
all help is appreciated, thanks
AhellHound


Reply With Quote
Bookmarks