Page 1 of 1

validation code java script

Posted: Fri May 30, 2008 3:24 am
by nitsmooth
i call the validate function(validate_user) on submit button

onSubmit="return validate_user()"

but smhow the execution does not go inside the validate_user()

function validate_user()
{
}

Re: validation code java script

Posted: Fri May 30, 2008 5:20 am
by VladSun
onsubmit must be used in the FORM tag, not in the submit button tag.