我想要显示这种按摩"谢谢!"通过bootstrap模态而不是警报。
//AJAX code to submit form.
$.ajax({
type: "POST",
url: "ajaxsubmit.php",
data: dataString,
cache: false,
success: function(result){
alert("Thank you!");
}
});
答案 0 :(得分:0)
给你的模态一个id
类似“ thankyouModal ”,ref creating modal
$.ajax({
type: "POST",
url: "ajaxsubmit.php",
data: dataString,
cache: false,
success: function(result){
$("#thankyouModal").modal('show')
}
});