JQuery EasyUI combobox动态添加option
<inputclass="easyui-combobox"id="rwlb"name="rwlb"style="width:435px"data-options="valueField:'id',textField:'text',panelHeight:'auto'">
方法一:
1vardata,json;
2json='[{"id":"年计划","text":"年计划","selected":true}]';
3data=$.parseJSON(json);
4$("#rwlb").combobox("loadData",data);
方法二:
1vardata,json;
2data=[];
3data.push({"text":"测试","id":100});
4$("#rwlb").combobox("loadData",data);
http://www.cnblogs.com/easypass/archive/2012/12/29/2838329.html
相关推荐
89427412 2020-02-13
0tx 2014-01-19
xx0cw 2019-10-27
小小大人物 2017-03-01
88324358 2016-03-18
黎豆子 2014-01-19
84483368 2012-10-16
崔博伦一路有你 2012-10-15
EdwardSiCong 2012-03-31
huzai 2012-02-23
shanhuijava 2011-07-31
lsxxx0 2017-08-06
83483768 2019-05-04
melissahexiu 2017-03-08
醉殇姒若梦遗年 2016-12-19
87407607 2013-12-24
88487901 2013-11-30
CleanData 2018-01-24