$("#codeType").combobox({
valueField: 'id',
textField: 'text',
editable:false,
// contentType: "application/json", 转义问题
url: base+'/operating/getCodeType',
onSelect: function(rec){
$('#productType').combobox('clear');//清除二级联动code默认选中项
var url = base+'/operating/getCode?codeType='+rec.id;
$('#productType').combobox('reload', url);
// alert(rec.id);
if(rec.id=='MoreTaoCan_Type'){
$("#updateparticularsDiv").prop("style","display:block");
$("#updatepackageContentDiv").prop("style","display:none")
}
if(rec.id=='taocan_type'){
$("#updatepackageContentDiv").prop("style","display:block");
$("#updateparticularsDiv").prop("style","display:none");
}
}
});
EasyUI:easyui-combobox(清除选中项)
最新推荐文章于 2025-07-10 22:13:19 发布