SyntaxFix
Write A Post
Hire A Developer
Questions
if($('.modal').hasClass('in')) { alert($('.modal .in').attr('id')); //ID of the opened modal } else { alert("No pop-up opened"); }