 <p>It really depends on how you store data, you want to delete. If you just want to hide deleted element from page, you can do that with javascript. eg.:</p> <pre><code>$(document).on("click", ".alert", function(e) { bootbox.confirm("?", function(result) { $(this).hide(200); // animated }); }); </code></pre> <p>If you store data you show in database, you should use ajax to request for example php that erase data from database.</p>