jquery easyui combobox

董弘新
2023-12-01

 

$("#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);
                            }
                        }
                    });

 

转载于:https://www.cnblogs.com/zxbzl/p/4878151.html

 类似资料:

相关阅读

相关文章

相关问答