Twitter bootstrap remote modal shows same content every time

前端 未结 22 1404
春和景丽
春和景丽 2020-11-22 12:29

I am using Twitter bootstrap, I have specified a modal

<
22条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 13:03

    Why not make it more general with BS 3? Just use "[something]modal" as the ID of the modal DIV.

    $("div[id$='modal']").on('hidden.bs.modal',
        function () {
            $(this).removeData('bs.modal');
        }
    );
    

提交回复
热议问题