Here is my code which is calling the file shipper_modal.html file. I want to call this through an AJAX request and put the response in to a Bootstrap modal. This is not working.
$('.modalLink1').click(function() {
$.ajax({
url: "shipper_modal.html",
cache: false:
function(result) {
$(".modal-content").html(result);
})
})
Thanks in advance
Try this:
$('.modalLink1').click(function(){
$.ajax({
url: "shipper_modal.html",
cache: false,
success: function(result) {
$(".modal-content").html(result);
}});
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.