diff options
Diffstat (limited to 'src/attributes/val.js')
-rw-r--r-- | src/attributes/val.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/attributes/val.js b/src/attributes/val.js index 757680607..1ba42a5c8 100644 --- a/src/attributes/val.js +++ b/src/attributes/val.js @@ -143,11 +143,16 @@ jQuery.extend( { while ( i-- ) { option = options[ i ]; + + /* eslint-disable no-cond-assign */ + if ( option.selected = jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 ) { optionSet = true; } + + /* eslint-enable no-cond-assign */ } // Force browsers to behave consistently when non-matching value is set |