<input class="easyui-combobox" id="fgcode" name="fgcode" style="width:70px;" onkeydown="loadResult(event)"
data-options="
url: 'fgcodeManageAction!loadFGCodeListforCombox.action',
valueField:'id',
multiple:false,
textField:'text',
panelHeight:'200',
filter: function(q, row){
var opts = $(this).combobox('options');
return row[opts.textField].indexOf(q) >= 0;//这里改成>=即可在任意地方匹配
},
onLoadSuccess:function(){
$('#fgcode').combobox('setValue','');
},
onSelect: function(rec){
var url = 'workOrderManagerAction!loadWorkOrderforCombox3.action?fgcode='+rec.id;
$('#workorder').combobox('reload', url);
}
"
/>
输入框各种事件
最新推荐文章于 2024-04-08 17:39:55 发布