easyui combobox默认选中第一个
2016-06-15 14:24
585 查看
$('#cabinettype_add').combobox({ url:'${pageContext.request.contextPath}/cabinetTypeAction!getCabinetType.action?controltype='+CType, valueField: 'cabinettypeid', textField: 'cabinettypename', editable:false, panelHeight:'auto', onLoadSuccess: function () { //加载完成后,设置选中第一项 var val = $(this).combobox("getData"); for (var item in val[0]) { if (item == "cabinettypeid") { $(this).combobox("select", val[0][item]); } } } });
相关文章推荐
- Android开发中无处不在的设计模式——Builder模式
- easyui combobox默认选中第一个
- 图像滤波算法之guide filter导向滤波
- 【Android】【完善】MarqueeView垂直跑马灯解析和完善
- .NET一个线程更新另一个线程的UI(两种实现方法及若干简化)
- iOS 二维码、条码扫描(带UI)
- 点击tableView的cell弹出tableView
- Hibernate中inverse="true"的理解
- Respond.js让IE6-8支持CSS3 Media Query
- [leetcode] 346. Moving Average from Data Stream 解题报告
- android user build serial console
- android studio:ndk error:'D:\...\ndk-build.cmd'' finished with non-zero exit
- Range Sum Query - Javacript
- 4、Android UI测试
- 4、Android UI测试
- Build IKAnalyzer With Solr 5.1.0
- IOS-- UIView中的坐标转换
- QuickSort(递归)
- 百度的ueditor使用
- 【转载】PHP使用empty检查函数返回结果时报Fatal error: Can't use function return value in write context的问题