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 @ 2012-12-10 11:30  EasyPass  阅读(61843)  评论(3编辑  收藏  举报