ajax(或者jquery)如何提交整个form表单

学留痕 2014-01-03

$.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);
                }
            });

相关推荐

hixiaoyang / 0评论 2012-02-03