Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Close jquery-modal 5 seconds after being opened.
// Attach an event handler to when the modal is opened.
$(document).on($.modal.OPEN, function(event, modal) {
// Use setTimeout to close the modal in 5 seconds (5000 milliseconds).
setTimeout(function() {
}, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.