Skip to content

Instantly share code, notes, and snippets.

@makeusabrew
Created November 7, 2011 13:10
Show Gist options
  • Save makeusabrew/1344896 to your computer and use it in GitHub Desktop.
Save makeusabrew/1344896 to your computer and use it in GitHub Desktop.
bootbox.js - programatically hide a dialog
var box = bootbox.alert("This dialog will disappear in three seconds.");
setTimeout(function() {
// be careful not to call box.hide() here, which will invoke jQuery's hide method
box.modal('hide');
}, 3000);
@James-dai
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment