码迷,mamicode.com
首页 > Web开发 > 详细

jquery easyui combobox

时间:2015-10-14 19:20:51      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:

 

$("#select_Dic").combobox({
                        url: "http://www.cnblogs.com/Ajax/sys/WebServiceBase.ashx?Method=GetRefItems", //获取所有私有域
                        valueField: "Code",
                        textField: "Name",
                        panelHeight: "auto",
                        editable: false, //不允许手动输入
                        onLoadSuccess: function () { //数据加载完毕事件
                            var data = $(‘#select_Dic‘).combobox(‘getData‘);
                            if (data.length > 0) {
                                $("#select_Dic").combobox(‘select‘, data[0].value);
                            }
                        }
                    });

 

jquery easyui combobox

标签:

原文地址:http://www.cnblogs.com/zxbzl/p/4878151.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!