I\'ve made use of modal window for a wizard implementation which has around 4,5 steps. I need to destroy it completely after the last step(
This worked for me.
$('.modal-backdrop').removeClass('in'); $('#myDiv').removeClass('in');
The dialog and backdrop went away, but they came back the next time I clicked the button.