Answers for "delete modal bootstrap"

4

close bootstrap modal with javascript

$('#myModal').modal('hide');
Posted by: Guest on April-16-2020
0

bootstrap modal on close

$('#myModal').on('hidden.bs.modal', function () {
    // do something…
});
Posted by: Guest on May-30-2021
1

bootstrap modal prevent close

$('#myModal').modal({backdrop: 'static', keyboard: false})
Posted by: Guest on March-02-2020
-1

bootstrap modal popup clear data

$('#yourModalName').on('hidden.bs.modal', function(event) {
     $('#yourModalName').empty();
});
Posted by: Guest on December-28-2020

Browse Popular Code Answers by Language