function opt(){ var id = $("#ids").val(); $.ajax({ type: "POST", url: "${basePath}/cardInfo/selectByid?id="+id, success: function(msg){ var myobj=(eval("(" + msg + ")").msg); $("#id").html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head><title>年月日三下拉框联动</title>
做下拉框联动,异步加载数据,第一次显示时数据不准确,不要在combo_2的下拉框直接绑定store,在combo_1的改变事件里调用下面的方法 function GetAllCustomerBrand(customerID) { var storeCustomerBrand = Ext.StoreManager.lookup("customerBrandStoreCombo"); if (!storeCustomerBrand) {//第一次加载 storeCustomerBrand