Can I check if Bootstrap Modal currently Shown / Hidden Programatically?
Like bool a = if(\"#myModal\").shown(); ?
bool a = if(\"#myModal\").shown();
I need true/false
The best method is given in the docs
$('#myModal').on('shown.bs.modal', function () { // will only come inside after the modal is shown });
for more info refer http://getbootstrap.com/javascript/#modals