Sivo 悉见

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

匿名 · 更新于 2014/1/16

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