Skip to content
Permalink
Browse files

Autocomplete: Use the text of the option, not the value when checking…

… for valid values. Fixes #6673 - Autocomplete combobox is not working in IE if value and name is different.
  • Loading branch information...
scottgonzalez committed Nov 19, 2010
1 parent 4637695 commit ddf59462af7fb986bb06c0b6d0101086b0702f5b
Showing with 1 addition and 1 deletion.
  1. +1 −1 demos/autocomplete/combobox.html
@@ -58,7 +58,7 @@
var matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( $(this).val() ) + "$", "i" ),
valid = false;
select.children( "option" ).each(function() {
if ( this.value.match( matcher ) ) {
if ( $( this ).text().match( matcher ) ) {
this.selected = valid = true;
return false;
}

0 comments on commit ddf5946

Please sign in to comment.
You can’t perform that action at this time.