easyui combobox 级联选择

<td>国家:</td>
     <td>
         <input class="easyui-combobox" name="country"  data-options="editable:false,panelHeight:200,valueField:'id',textField:'name',url:'/countryList.action‘,loadFilter:function(data){if(data.success)return data.result.rows;},onSelect:function(rec){ $('#province').combobox('reload', '/provinceList.action?countryId='+rec.id);}" > 
     </td>
        <td>省:</td>
     <td>
         <input class="easyui-combobox" name="province" id="province" data-options="editable:false,panelHeight:200,valueField:'id',textField:'name',loadFilter:function(data){if(data.success)return data.result.rows;},onShowPanel:function(){if(!$('#country').combobox('getValue')){$.messager.alert('提示','请先选择国家','info');}}"> 
     </td>

你可能感兴趣的:(combobox)