jquery ajax提交表单
var activityId = $("#activityId").val();
$.ajax({
type: "post",
url: "/arweb/reserve/add.action",
async: false,
data: "activityId = " + activityId,
dateType: "html",
success: function(){
alert("您已预约成功!");
$("#reserveBtn").attr("disabled", true);
},
error: function(){
alert("您的预约信息保存失败,请重新预约!");
}
});