i am using javascript validation for my input box from javascript-coder but i have 2 problems here.
First: The validator in the script uses name to validate the object, i
To answer your second question:
If validation fails, you want to return false from the submit handler:
return false
function submitForm() { var result = validate(this); if ( result === false ) { return false; } }
That way the form submission process will be canceled.