Skip to content

Commit

Permalink
Core: Use :disabled selector to match disabled elements
Browse files Browse the repository at this point in the history
This also applies to elements that are inside a fieldset with a disabled
attribute, causing an inherited disabled state. Only matching the disabled
attribute directly won't capture that.

Closes #1474
  • Loading branch information
weitzhandler authored and jzaefferer committed May 12, 2015
1 parent 1b493ed commit f37c2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -550,7 +550,7 @@ $.extend( $.validator, {
// select all valid inputs inside the form (no submit or reset buttons)
return $( this.currentForm )
.find( "input, select, textarea" )
.not( ":submit, :reset, :image, [disabled]" )
.not( ":submit, :reset, :image, :disabled" )
.not( this.settings.ignore )
.filter( function() {
if ( !this.name && validator.settings.debug && window.console ) {
Expand Down

0 comments on commit f37c2d8

Please sign in to comment.