Here is an example code showing how to display the content retrieved via AJAX within a Bootbox dialog.
var bb = bootbox.dialog({ message: 'Loading...', onEscape: true, backdrop: true }); var bbBody = bb.find('.bootbox-body'); $.ajax({ url: <URL>, success: function (data) { bbBody.html(data); } });
$.ajax({ url: <URL>, success: function (data) { bootbox.dialog({ message: data, onEscape: true, backdrop: true }); } });
Comments