Fixed .val(String) for select elements (#1760) [Thanks Sam]
This commit is contained in:
parent
0f5c1d15e9
commit
971840f343
2 changed files with 5 additions and 2 deletions
|
@ -407,7 +407,7 @@ jQuery.fn = jQuery.prototype = {
|
|||
jQuery.inArray( this.text, values ) >= 0);
|
||||
});
|
||||
|
||||
if ( !tmp.length )
|
||||
if ( !values.length )
|
||||
this.selectedIndex = -1;
|
||||
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue