diff --git a/src/core.js b/src/core.js index 11c57a027..545b53aee 100644 --- a/src/core.js +++ b/src/core.js @@ -265,6 +265,7 @@ $.extend( $.validator, { errorLabelContainer: $( [] ), onsubmit: true, ignore: ":hidden", + inputSelector: "input, select, textarea, [contenteditable]", ignoreTitle: false, onfocusin: function( element ) { this.lastActive = element; @@ -616,7 +617,7 @@ $.extend( $.validator, { // Select all valid inputs inside the form (no submit or reset buttons) return $( this.currentForm ) - .find( "input, select, textarea, [contenteditable]" ) + .find( validator.settings.inputSelector ) .not( ":submit, :reset, :image, :disabled" ) .not( this.settings.ignore ) .filter( function() { diff --git a/test/index.html b/test/index.html index b0bf9bd3d..67cf75de7 100644 --- a/test/index.html +++ b/test/index.html @@ -445,6 +445,26 @@