ajax提交form表单

来源:互联网 发布:优化重组数学单元卷3 编辑:程序博客网 时间:2024/05/05 18:47
$.ajax({                cache: true,                type: "POST",                url:ajaxCallUrl,                data:$('#yourformid').serialize(),// 你的formid,serialize()函数会把表单要提交的数据序列化成参数形式                async: false,                error: function(request) {                    alert("Connection error");                },                success: function(data) {                    $("#commonLayout_appcreshi").parent().html(data);                }            });

0 0