Se rendre au contenu
Menu
Cette question a été signalée
2285 Vues

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
Ignorer
Publications associées Réponses Vues Activité
1
juil. 25
2405
2
juil. 25
7892
2
juil. 25
4301
2
juil. 25
4039
2
juin 25
2656