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
With Bootstrap 4:
if ($('#myModal').hasClass('show')) { alert("Modal is visible") }