Skip to Content
Menu
This question has been flagged
1703 Views

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
Discard
Related Posts Replies Views Activity
1
Nov 24
1482
1
Nov 24
1186
2
Sep 24
1046
1
Aug 24
2450
3
Aug 24
2681