Se rendre au contenu
Menu
Cette question a été signalée
2358 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
2747
0
août 25
352
1
août 25
2414
2
juil. 25
8179
2
juil. 25
4615