Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit ddf59462af7fb986bb06c0b6d0101086b0702f5b 1 parent 4637695
@scottgonzalez scottgonzalez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  demos/autocomplete/combobox.html
View
2  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.