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
For me this works
if($("#myModal").css("display") !='none' && $("#myModal").css("visibility") != 'hidden') alert("modal shown");
alert("modal shown");