mirror of
https://github.com/jquery/jquery.git
synced 2026-02-18 03:51:20 -05:00
Fixed .val(String) for select elements (#1760) [Thanks Sam]
This commit is contained in:
@@ -407,7 +407,7 @@ jQuery.fn = jQuery.prototype = {
|
||||
jQuery.inArray( this.text, values ) >= 0);
|
||||
});
|
||||
|
||||
if ( !tmp.length )
|
||||
if ( !values.length )
|
||||
this.selectedIndex = -1;
|
||||
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user