/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//called on onsubmit form event function checkForm(event) { var isValid = true; //contains the return value //apply rules on the form event.returnValue = isValid; //IE specific return isValid; //for standard browsers }