Re-select bootbox.js modal and close

Let’s say that you have instantiated a bootbox.js modal or dialog somewhere else in your code like this:

Now you want to take some action on it, like closing it for example. In order to re-select the object you can either use the class name that you gave it or use an element inside the bootbox and traverse the parents until you find “.bootbox”.



Tim Schnell

Writer of software/english, tech nerd, and genetically predisposed to fight with words instead of actions.

  • Tim Schnell