Skip to content

Commit ba9fee0

Browse files
committed
The combobox is not working in IE8 when the value is different with the name displayed in dropdown.
For example, the dropdown below: <select id="user"> <option value="">--</option> <option value="1">Eric</option> <option value="7">Tom</option> </select>
1 parent efa28a5 commit ba9fee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/autocomplete/combobox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
var matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( $(this).val() ) + "$", "i" ),
5959
valid = false;
6060
select.children( "option" ).each(function() {
61-
if ( this.value.match( matcher ) ) {
61+
if ( this.innerHTML.match( matcher ) ) {
6262
this.selected = valid = true;
6363
return false;
6464
}

0 commit comments

Comments
 (0)