Se rendre au contenu
Menu
Cette question a été signalée
2532 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é
3
sept. 25
3381
0
août 25
884
1
août 25
3150
2
juil. 25
8774
2
juil. 25
5136