Ticket #4878: attributes.diff
| File attributes.diff, 774 bytes (added by bennettmcelwee, 3 years ago) |
|---|
-
attributes.js
98 98 jQuery.inArray(this.name, value) >= 0); 99 99 100 100 else if ( jQuery.nodeName( this, "select" ) ) { 101 var values = jQuery.makeArray(value); 101 var values = jQuery.makeArray(value), 102 one = this.type == "select-one", 103 canSelect = true; 102 104 103 105 jQuery( "option", this ).each(function(){ 104 this.selected = (jQuery.inArray( this.value, values ) >= 0 ||106 this.selected = canSelect && (jQuery.inArray( this.value, values ) >= 0 || 105 107 jQuery.inArray( this.text, values ) >= 0); 108 if (this.selected && one) 109 canSelect = false; 106 110 }); 107 111 108 112 if ( !values.length )
