aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-11-19 16:28:02 -0500
committerScott González <scott.gonzalez@gmail.com>2010-11-19 16:28:02 -0500
commitddf59462af7fb986bb06c0b6d0101086b0702f5b (patch)
treed2fe9c07469f608e2a9771920ccc1d2e2f9ddc7d /demos
parent46376958940fa7823c2e5ef4fb15b87c7d2f47db (diff)
downloadjquery-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')
-rw-r--r--demos/autocomplete/combobox.html2
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;
}