EasyUI:easyui-combobox(清除选中项)

开发十年,就只剩下这套Java开发体系了 >>>   hot3.png

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

你可能感兴趣的:(EasyUI:easyui-combobox(清除选中项))