Combobox组件官方文档: http://www.jeasyui.com/documentation/index.php#
配置示例
<input class="easyui-combobox" id="themes" name="themes" data-options="url:'<%=basePath %>resources/json/KeyType.json', method:'get', valueField:'value', textField:'text', multiple:true, panelHeight:'auto' ">
JSON数据
[{ "value":"sidaluanjian", "text":"私搭乱建" },{ "value":"cnuisance", "text":"施工扰民" },{ "value":"roaddamage", "text":"道路破损" },{ "value":"sdtrash", "text":"暴漏垃圾" }]
调用方式
combobox获取单个值
$('#mycomBox').combobox('getValue');
combobox获取多个值
$('#mycomBox').combobox('getValues');
如果是获得文本内容,将getValue改为getText即可