jquery的live post使用
来源:互联网 发布:阿里云 定时任务 编辑:程序博客网 时间:2024/05/16 07:22
$(function(){
$("#proId").live("change",function(){
//var value=$("#proId").val();
$("#cityId").html("<option value='-1' >请选择县市</option>");
// $("#city").empty();
//$("#city").val("-1");
$.post("../customer/queryXianShi.action",{ deptId:$("#proId").val()},
function(result){
var data=result.lv;
var str="<option value='-1' >请选择县市</option>";
for(var i=0;i<data.length;i++){
var a=data[i];
str+="<option value='"+a.DEPT_ID+"'>"+a.DEPT_NAME+"</option>"
}
$("#cityId").html(str);
}
);
});
});
$("#proId").live("change",function(){
//var value=$("#proId").val();
$("#cityId").html("<option value='-1' >请选择县市</option>");
// $("#city").empty();
//$("#city").val("-1");
$.post("../customer/queryXianShi.action",{ deptId:$("#proId").val()},
function(result){
var data=result.lv;
var str="<option value='-1' >请选择县市</option>";
for(var i=0;i<data.length;i++){
var a=data[i];
str+="<option value='"+a.DEPT_ID+"'>"+a.DEPT_NAME+"</option>"
}
$("#cityId").html(str);
}
);
});
});
- jquery的live post使用
- jquery的.live()和.bind的使用
- jquery的live须谨慎使用
- jquery的live方法
- 使用jQuery的live()方法的一点教训
- jQuery中的bind()、live()的区别与使用
- 关于jquery使用live()方法的问题Uncaught TypeError: $(...).live is not a function
- jquery live 与使用 jquery ui api
- 20160127--Jquery的ajax与post使用
- jQuery的.live()和.die()
- jQuery的.live()和.die()
- jQuery的.live()和.die()
- jquery中live的用法
- jQuery的.live()和.die()
- jQuery的.live()和.die()
- jQuery的.live()和.die()
- jQuery的.live()和.die()
- 如何使用火狐浏览器的 live http headers调试http post get请求
- SQL1117N 由于 ROLL-FORWARD PENDING,不能连接或激活数据库 "EBILL"。
- Android中自定义的加载对话框和加载条
- android开发中遇到unknownhostException
- asp.net cookies用法
- vim查看映射定义的文件
- jquery的live post使用
- android webview 任何密度,屏幕大小。
- socket 编程下 inet_ntoa() 函数的使用与注意事项
- 数据库设计之分表设计
- js操作DOM--添加、删除节点
- ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "653" secon
- android开发的异步任务须知
- Java代码中调用批处理和打开命令行窗口
- TCP/IP 协议栈