Twitter bootstrap remote modal shows same content every time

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

I am using Twitter bootstrap, I have specified a modal

<
22条回答
  •  名媛妹妹
    2020-11-22 13:04

    This other approach works well for me:

    $("#myModal").on("show.bs.modal", function(e) {
        var link = $(e.relatedTarget);
        $(this).find(".modal-body").load(link.attr("href"));
    });
    

提交回复
热议问题