"send fter prevent form"
Bootstrap 3.3.0 Snippet by codobred

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <script src="https://github.com/makeusabrew/bootbox/releases/download/v4.4.0/bootbox.min.js"></script> <div class="container"> <div class="row"> <h2>submit form</h2> <form id="sub_form" action="/"> <input type="text" value="12343"> <input type="submit" value="send"> </form> </div> </div>
$("#sub_form").submit(function(e) { e.preventDefault(); alert(12121212); bootbox.confirm("Are you sure want to delete this video?", function(result) { if (result) { console.log('sumvfvf'); $(this).unbind("submit").submit(); return; } }); });

Related: See More


Questions / Comments: