Hello,
Ok, so you have this:
The first thing to check is whether this function is being called. In order to do that, make this change:Code:onsubmit="return validate(this)
And try running your code. Do you get a popup box?Code:function validate() { alert('I am in the validate function'); hasFocus = false; var form = document.forms['form']; var ary=[checkName,checkEmail,validatePwd,validPhone]; var rtn=true; var z0=0; for (var z0=0;z0<ary.length;z0++) { if (!ary[z0](form)) { rtn=false; } } return rtn; }
Gary





Reply With Quote