1、多选属性multiple
multiple:true多选 multiple:false单选
<input class="easyui-combobox" id="xgr" name="xgr" style="width:435px" url='../Source/Public/json.ashx?action=zhymch'
data-options="valueField:'zhymch', textField:'zhymch',multiple:true,panelHeight:'auto'" >
2、赋值
(1)单选赋值setValue
$('#Id').combobox('setValue','key')
(2)多选赋值setValues
多选key值是一个数组,$('#Id').combobox('setValues','key1,key2,key3'.split(','))
jQuery EasyUI combobox多选及赋值
最新推荐文章于 2022-10-11 18:02:42 发布