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
Use hasClass('in'). It will return true if modal is in OPEN state.
hasClass('in')
OPEN
E.g:
if($('.modal').hasClass('in')){ //Do something here }