标签:
<input class="easyui-combobox" id="rwlb" name="rwlb" style="width:435px" data-options="valueField:‘id‘, textField:‘text‘, panelHeight:‘auto‘" >
方法一:
var data, json; json = ‘[{"id":"年计划","text":"年计划","selected":true}]‘; data = $.parseJSON(json); $("#rwlb").combobox("loadData", data);
方法二:
var data,json; data = []; data.push({ "text": "测试", "id": 100 }); $("#rwlb").combobox("loadData", data);
JQuery EasyUI combobox动态添加option
标签:
原文地址:http://www.cnblogs.com/samjustin/p/4620557.html