mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04: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