I am using Twitter bootstrap, I have specified a modal
<
-
In Bootstrap 3.2.0 the "on" event has to be on the document and you have to empty the modal :
$(document).on("hidden.bs.modal", function (e) {
$(e.target).removeData("bs.modal").find(".modal-content").empty();
});
In Bootstrap 3.1.0 the "on" event can be on the body :
$('body').on('hidden.bs.modal', '.modal', function () {
$(this).removeData('bs.modal');
});