Ajax提交form表单

 1 $.ajax({
 2   cache: true,
 3   type: "POST",
 4   url:ajaxCallUrl,
 5   data:$('#yourformid').serialize(),// 你的formid
 6   async: false,
 7   error: function(request) {
 8     alert("Connection error");
 9   },
10   success: function(data) {
11     $("#commonLayout_appcreshi").parent().html(data);
12   }
13 });

 

 

posted @ 2014-08-29 17:39  尚荣伊翁  阅读(151)  评论(0编辑  收藏  举报