Skip to Content
Menu
This question has been flagged
2280 Zobrazenia

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



Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
júl 25
2391
2
júl 25
7886
2
júl 25
4292
2
júl 25
4030
2
jún 25
2636