Hello all
I have a searchbox and datalist
I want to when you type on searchbox the datalist fill with the matches records
I have this code:
<input class="easyui-searchbox" style="width:95%;" data-options="
prompt:'Buscar',
searcher:doSearch,
onChange:function(newValue,oldValue){
doSearch(newValue);
}">
<div id="dt" class="easyui-datalist" style="height:450px;" data-options="
url: 'retrieve/get.php',
method: 'get',
lines: true,
groupField: 'group'
">
<script type="text/javascript">
function doSearch(value){
$('#dt').datagrid('load',{
q: value
});
}
</script>
But when I type a word I expect the event trigger and no happens, I have to click the icon search to the function trigger
I want the event onChange be like onMouse**
when I type some in mode automatic the results ben shown in the datalist