跳至內容
選單
此問題已被標幟
2281 瀏覽次數

I make a call to the booking plugin to generate a modal with this code, but when I show it, it loses the interactivity of the events. How I can avoid this?

$.ajax({
    type: "POST",
    url: "booking/reservation/modal",
    data: JSON.stringify(data),
    contentType: "application/json",
    success: function (response) {
        resolve(response)
        $("body").append(response.result)
        $(".modal").modal("show")        },       
    xhrFields: {
        withCredentials: true,
    },
})


result.response is give me this html:


\n"\n



頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 25
2397
2
7月 25
7888
2
7月 25
4295
2
7月 25
4030
2
6月 25
2650