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 da76a72 commit 3a7b09eCopy full SHA for 3a7b09e
src/core.js
@@ -410,9 +410,7 @@ jQuery.fn = jQuery.prototype = {
410
jQuery.inArray(this.name, value) >= 0);
411
412
else if ( jQuery.nodeName( this, "select" ) ) {
413
- var values = value.constructor == Array ?
414
- value :
415
- [ value ];
+ var values = jQuery.makeArray(value);
416
417
jQuery( "option", this ).each(function(){
418
this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
0 commit comments