jquery的ajax提交form表单

 

 

$.ajax({
                cache: true,
                type: "POST",
                url:ajaxCallUrl,
                data:$('#yourformid').serialize(),// 你的formid
                async: false,
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
                    $("#commonLayout_appcreshi").parent().html(data);
                }
            });

 

posted @ 2015-07-06 15:18  243573295  阅读(176)  评论(0编辑  收藏  举报