3
It seems simple but I’m struggling, I have two modal
that has to appear in the home after login of the user, I need to appear one and only after the user closes that first appears the second modal. I have the following code:
$(document).ready(function(){
$("#ModalUpdateData").modal("hide");
setTimeout(function(){
if (!Cookies.get("ModalScore")){
$("#ModalScore").modal("show");
Cookies.set("ModalScore", true);
} else {
}
},3000);
setTimeout(function(){
if (!Cookies.get("ModalUpdateData")){
$("#ModalUpdateData").modal("show");
Cookies.set("ModalUpdateData", true);
} else {
}
},3000);
});
What’s the best solution for that? I’ve tried the .on('click')
in the element #ModalScore (primeiro modal)
but it has a slide where I click inside it to change slide and end up making the other modal appear.
You can start the second from the closing click of the 1st...
– MagicHat
Which plugins are you using? Which modal?
– novic
@Magichat then but the first closes either by clicking on 'x' or outside the modal.
– user27585
@Virgilionovic guy uses the same bootstrap modal.
– user27585
what version of bootstrap ?
– MagicHat