I am attempting to utilize jQuery to open a dialog box. I have followed the instructions provided in this link:
Here is the code snippet for the dialog:
<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>Delete Page?</h1>
</div>
<div data-role="content" data-theme="d" class="ui-corner-bottom ui-content">
<h3 class="ui-title">Are you sure you want to delete this page?</h3>
<p>This action cannot be undone.</p>
<a href="#" data-role="button" data-inline="true" data-rel="back" data-theme="c">Cancel</a>
<a href="#" data-role="button" data-inline="true" data-rel="back" data-transition="flow" data-theme="b">Delete</a>
</div>
</div>
In the jQuery ready function, I am trying to open the dialog using the following lines of code: $("#popupDialog").popup(); $("#popupDialog").popup("open");
I am unsure what went wrong and unable to find any assistance on this issue!!!