'Can I add a bootstrap modal to an event listener?
I am trying to figure out if it is possible to add a bootstrap modal to an even listener. Essentially, I am trying to make my event listener listener for a click anywhere on a page and then display a modal. Is it even possible? I don’t know what the function should look like for this..
Solution 1:[1]
You can try this using JQuery:
$(document).click({
$('#myModal').modal('show');
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Lucca Lipisky |
