How do I check via jQuery if a jQuery Mobile popup is open?
问题 I'm able to activate the following jQuery Mobile popup: <div data-role="popup" id="waiting1" data-overlay-theme="a" data-corners="false" data-tolerance="30,15" data-dismissible="false"> <div class="modalAlert" id="waitingContent"> Waiting... </div> </div> using the jQuery command: $(waiting1).popup('open'); but then I want to confirm programmatically that the popup opened, and trigger an alert using an IF statement if it didn't. I tried using the CSS display attribute: if ( $(waiting1).css(