标签:
HTML
<div class="tip">客户名称</div> <div class="content"><select id="enterprise" class="easyui-combogrid" style="width:80% ; height: 30px;"></select></div>
JS
$("#enterprise").combogrid({ panelWidth: 400, idField: ‘id‘, textField: ‘enterprise‘, url: ‘../_Datas/xxx/xxx.ashx?o=getmemberbymobile‘, method: ‘get‘, mode: ‘remote‘, columns: [[ { field: ‘id‘, title: ‘编号‘, hidden: ‘true‘ }, { field: ‘enterprise‘, title: ‘客户名称‘ , width: 380 } ]], fitColumns: true });
输入框内容发生变化时会重新请求 ASHX,并加参数q,为输入的内容。
标签:
原文地址:http://www.cnblogs.com/chenliang-zibo/p/4391750.html