diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-11-19 16:28:02 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-11-19 16:28:02 -0500 |
commit | ddf59462af7fb986bb06c0b6d0101086b0702f5b (patch) | |
tree | d2fe9c07469f608e2a9771920ccc1d2e2f9ddc7d /demos/autocomplete/combobox.html | |
parent | 46376958940fa7823c2e5ef4fb15b87c7d2f47db (diff) | |
download | jquery-ui-ddf59462af7fb986bb06c0b6d0101086b0702f5b.tar.gz jquery-ui-ddf59462af7fb986bb06c0b6d0101086b0702f5b.zip |
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.
Diffstat (limited to 'demos/autocomplete/combobox.html')
-rw-r--r-- | demos/autocomplete/combobox.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index ed9b0d5a2..c1407385a 100644 --- a/demos/autocomplete/combobox.html +++ b/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; } |