From ba9fee04c9aacef0dbb888693c79b035bbb3f3b5 Mon Sep 17 00:00:00 2001 From: guoicq Date: Fri, 19 Nov 2010 10:38:42 -0800 Subject: [PATCH] The combobox is not working in IE8 when the value is different with the name displayed in dropdown. For example, the dropdown below: --- demos/autocomplete/combobox.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index ed9b0d5a2c4..fca39933509 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.innerHTML.match( matcher ) ) { this.selected = valid = true; return false; }