`

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("您的预约信息保存失败,请重新预约!");
				}
			});
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics