Auto close modal widget after 5 seconds
-
12-05-2021 - |
Question
I created a modal widget that appears after adding product to cart, it works perfectly .
Now I need to close the modal after 5 seconds.
please help!
Pas de solution correcte
Autres conseils
Try this :-
setTimeout(function(){
$(dialog).close();
},
5000);
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange