resetevents on forms (V0.8)
In this example the
reset "actions" are captured and their "default action" is canceled.
To pass the validation (and be able to submit/reset the form), just modify the content of the text box.
Validation will be suppressed also by unchecking the "Enable field validation" option in the form itself.
Log info are written in the console and status bar, enable writing to status bar in your browser preferences.
We capture "click" and "keypress" events on the document and filter those directed to "submit" or "reset" buttons.
This process is executed globally on the document, so all the forms in the document will assume this new behavior.
Users will be able to customize and include their validator function as shown in this example.
[Reload Page] [Back to formsCop Index]