0

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!

1
  • 1
    Please update question with code you are using to create popup modal. May 7, 2021 at 4:51

1 Answer 1

0

Try this :-

setTimeout(function(){
    $(dialog).close();
}, 
5000);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.