I have looked for a while, but I can\'t find a solution for this. I want the following:
I use this method:
$(function() { return $(".modal").on("show.bs.modal", function() { var curModal; curModal = this; $(".modal").each(function() { if (this !== curModal) { $(this).modal("hide"); } }); }); });