This is the working example.
The 'scrollTo' method can be called to scroll to the specified item.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ComboBox - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="https://www.jeasyui.com/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="https://www.jeasyui.com/easyui/themes/icon.css">
<script type="text/javascript" src="https://www.jeasyui.com/easyui/jquery.min.js"></script>
<script type="text/javascript" src="https://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript">
var data = [
{code:'A1',text:'A1'},
{code:'A2',text:'A2'},
{code:'A3',text:'A3'},
{code:'C1',text:'C1'},
{code:'C2',text:'C2'},
{code:'C3',text:'C3'}
];
$(function(){
$('#selOrthotic').combobox({
data: data,
valueField: 'code',
textField: 'text',
keyHandler: $.extend({},$.fn.combobox.defaults.keyHandler, {
query: function(q,e){
for(c of $(this).combobox('getData')){
if (c.code.slice(0,1) == q){
// $(this).combobox('select', c.code);
$(this).combobox('setValue', c.code);
return;
}
}
$.fn.combobox.defaults.keyHandler.query.call(this, q, e);
}
})
});
})
</script>
</head>
<body>
<input id="selOrthotic" style="width:200px;">
</body>
</html>