<script type="text/javascript">
$("input").blur(function(){
var $formData=$("#frm"); //表单异步提交
console.log($formData);
$.ajax({
url : "/search/topicSearch_getSearchTables.action",
type : "post",
data:$formData.serializeArray(),
dataType : 'json',
success : function(res) {
var jsonArray=res;
var cacheTables_count=jsonArray.length;
$('#cacheTables_count').html("");
$('#cacheTables_count').html(cacheTables_count);
$('#cachetables').empty();
for(var i=0;i<jsonArray.length;i++){
$('#cachetables').append('<li style="background-color:white;cursor:default;"><a href="#" style="background-color:white; color:black;cursor:default;">'+jsonArray[i].zhName+'</a></li>');
}
},
async : true
});
});
</script>
jquery表单异步提交
原创
©著作权归作者所有:来自51CTO博客作者mb5f199d99afeb3的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:常见错误
下一篇:服务发现组件:Eureka
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
JS异步表单提交处理
HTML表单 PHP代码处理部份 还有一种方法: 例:
ios ajax ico PHP -
jquery异步提交form表单
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%@ta
jquery.form.js java System jquery -
jquery实现表单form异步提交
用jquery实现form表单异步提交的简单方法
ajaxSubmit 表单异步提交 juqery提交表单form -
jquery 异步方法 jquery异步提交form表单
监听表单提交事件,并阻止表单提交
表单提交 ajax 表单 -
java模拟from表单提交表单提交表单 javascript 提交表单
用javascript提交表单
javascript 表单 form表单