We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db877eb commit 328efc9Copy full SHA for 328efc9
src/core.js
@@ -28,13 +28,14 @@ $.extend($.fn, {
28
if ( validator.settings.submitHandler ) {
29
validator.submitButton = event.target;
30
}
31
+
32
// allow suppressing validation by adding a cancel class to the submit button
- if ( $( event.target ).hasClass( "cancel" ) ) {
33
+ if ( $( this ).hasClass( "cancel" ) ) {
34
validator.cancelSubmit = true;
35
36
37
// allow suppressing validation by adding the html5 formnovalidate attribute to the submit button
- if ( $( event.target ).attr( "formnovalidate" ) !== undefined ) {
38
+ if ( $( this ).attr( "formnovalidate" ) !== undefined ) {
39
40
41
});
0 commit comments