Fixed the issue where getting an empty value was impossible. Fixes #5697.
This commit is contained in:
parent
c97e914d40
commit
261b7efb5f
2 changed files with 7 additions and 2 deletions
|
@ -164,7 +164,7 @@ jQuery.fn.extend({
|
|||
var values = jQuery.makeArray(val);
|
||||
|
||||
jQuery( "option", this ).each(function() {
|
||||
this.selected = jQuery.inArray( this.value || this.text, values ) >= 0;
|
||||
this.selected = jQuery.inArray( this.value, values ) >= 0;
|
||||
});
|
||||
|
||||
if ( !values.length ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue