Fixed .val(String) for select elements (#1760) [Thanks Sam]

This commit is contained in:
Brandon Aaron 2007-10-12 12:51:07 +00:00
parent 0f5c1d15e9
commit 971840f343
2 changed files with 5 additions and 2 deletions

View file

@ -407,7 +407,7 @@ jQuery.fn = jQuery.prototype = {
jQuery.inArray( this.text, values ) >= 0);
});
if ( !tmp.length )
if ( !values.length )
this.selectedIndex = -1;
} else