jQuery EasyUI combobox多选及赋值

 

 

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(','))

posted @ 2015-11-26 17:17  疯子110  阅读(3215)  评论(0编辑  收藏  举报