我已经定义了一个弹出层div,并且希望在某个事件上打开它,而不是使用href。我定义的弹出层div如下:
<div data-role="popup" id="popupDialog" data-overlay-theme="a" data-theme="c" style="max-width:400px;" class="ui-corner-all">
<div data-role="header" data-theme="a" class="ui-corner-top">
<h1>Sample Page</h1>
</div>
<div data-role="content" data-theme="d" class="ui-corner-bottom ui-content">
<a href="#" data-role="button" data-inline="true" data-rel="back" data-theme="c">OK</a>
</div>
</div>
我尝试调用这个弹出框div
$("#popupDialog").popup;
$("#popupDialog").popup();
$("#popupDialog").popup("open");
没有一个可用的。有什么建议吗?