I have a Bootstrap Modal to select events. If the user clicks on the X button or outside the modal, I would like to send them to the default event. How can I capture these event
Alternative way to check would be:
if (!$('#myModal').is(':visible')) { // if modal is not shown/visible then do something }