Bootstrap 3 – How to load content in modal body via AJAX?
This is actually super simple with just a little bit of added javascript. The link’s href is used as the ajax content source. Note that for Bootstrap 3.* we set data-remote=”false” to disable the deprecated Bootstrap load function. JavaScript: // Fill modal with content from link href $(“#myModal”).on(“show.bs.modal”, function(e) { var link = $(e.relatedTarget); $(this).find(“.modal-body”).load(link.attr(“href”)); … Read more