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!
No correct solution
OTHER TIPS
Try this :-
setTimeout(function(){
$(dialog).close();
},
5000);
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange