how to check with jquery if bootstrap modal is hidden or shown

To check if a Bootstrap modal is hidden or shown using jQuery, you can use the is(':visible') method. Here's an example:

if ($('#myModal').is(':visible')) {
  // Modal is currently shown
} else {
  // Modal is currently hidden
}

In the example above, #myModal is the ID of the modal element. You can replace it with the ID of your specific modal.

Please note that this solution assumes you have already included the jQuery library and that you have correctly set up your Bootstrap modal.