combobox下拉框级联并且每一个框默认选择第一个值使用onLoadSuccess——easyUI
来源:互联网 发布:中宣部知乎 编辑:程序博客网 时间:2024/06/05 07:08
/*
* 下拉框级联
*/
$('#input_add_checkfilehisotry_jz').combobox({
url:'${pageContext.request.contextPath}/machineType/getAllMachineTypelist',
panelHeight:'auto',
onChange:function(machineId){
$('#input_add_checkfilehisotry_gc').combobox({
url:'${pageContext.request.contextPath}/Engineering/getAllEngineeringlist?machineTypeId='+machineId,
panelHeight:'auto',
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_gc').combobox('getData');
$("#input_add_checkfilehisotry_gc ").combobox('select',data[0].id);
} ,
onChange:function(eneeringId){
$('#input_add_checkfilehisotry_processes').combobox({
url:'${pageContext.request.contextPath}/Processes/getAllProcesseslist?machineTypeId='+machineId + '&eneeringId='+ eneeringId,
panelHeight:'auto',
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_processes').combobox('getData');
$("#input_add_checkfilehisotry_processes ").combobox('select',data[0].id);
}
});
}
});
},
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_jz').combobox('getData');
$("#input_add_checkfilehisotry_jz ").combobox('select',data[0].id);
}
})
* 下拉框级联
*/
$('#input_add_checkfilehisotry_jz').combobox({
url:'${pageContext.request.contextPath}/machineType/getAllMachineTypelist',
panelHeight:'auto',
onChange:function(machineId){
$('#input_add_checkfilehisotry_gc').combobox({
url:'${pageContext.request.contextPath}/Engineering/getAllEngineeringlist?machineTypeId='+machineId,
panelHeight:'auto',
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_gc').combobox('getData');
$("#input_add_checkfilehisotry_gc ").combobox('select',data[0].id);
} ,
onChange:function(eneeringId){
$('#input_add_checkfilehisotry_processes').combobox({
url:'${pageContext.request.contextPath}/Processes/getAllProcesseslist?machineTypeId='+machineId + '&eneeringId='+ eneeringId,
panelHeight:'auto',
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_processes').combobox('getData');
$("#input_add_checkfilehisotry_processes ").combobox('select',data[0].id);
}
});
}
});
},
onLoadSuccess : function(){
var data = $('#input_add_checkfilehisotry_jz').combobox('getData');
$("#input_add_checkfilehisotry_jz ").combobox('select',data[0].id);
}
})
0 0
- combobox下拉框级联并且每一个框默认选择第一个值使用onLoadSuccess——easyUI
- combobox下拉框默认选择了第一值——easyUI
- easyui-combobox下拉框异步级联选择
- EasyUI 之 下拉框默认选择第一个选项
- ExtJs ComboBox下拉框默认第一个值
- EasyUI使用combobox的下拉框,显示第一个option的值,而不是text的问题
- jQuery easyUI combobox下拉框 联动 级联
- easyui combobox默认选中第一个
- easyui combobox默认选中第一个
- EasyUI——combobox级联
- EasyUI 系列之 combobox 默认选中第一个 添加请选择选项
- easyui中combobox下拉框中第一个值选不中
- 再说combobox——onLoadSuccess用法实例
- easyui easyui-combobox select下拉框问题
- jQuery EasyUI详解-EasyUI下拉框combobox
- easyui combobox 复选框选择
- easyui-combobox下拉框传递除valueField和textField之外的第三个值
- EasyUI使用心得:combobox下拉框自适应高度
- select 优化socket回射服务器
- iOS10推送项目配置
- 监控线上服务器运行情况脚本
- unsigned类型需要注意的事项
- C++“准”标准库Boost学习指南(9):Boost.Bind
- combobox下拉框级联并且每一个框默认选择第一个值使用onLoadSuccess——easyUI
- reinforcement learning,增强学习:Policy Evaluation,Policy Iteration,Value Iteration,Dynamic Programming f
- 搭建Struts2开发环境
- “九头虫”病毒技术分析报告
- PowerDesigner v16.5
- java中String、StringBuffer、StringBuilder的区别
- 未解决的问题记录——关于easyui中datagrid的冻结列右侧冻结
- Provisional headers are shown
- 设置banner图片居中且有背景