</div>
<div class="ui-popup-button-bg">
<a data-role="button" data-rel="back" data-inline="true">OK</a>
- <a data-role="button" id="btn_textbox_popup_cancel" data-rel="back" data-inline="true">Cancel</a>
+ <a data-role="button" id="btn_textbox_popup_cancel" data-inline="true">Cancel</a>
</div>
</div>
</div>
</div> <!-- /content -->
-
+ <script src="popupwindow.js"></script>
<div data-role="footer">
</div>
- <script src="popupwindow.js"></script>
</div> <!-- /page -->
</body>
-$( document ).one( "pagecreate", "#popupwindow-demo", function () {
- $('input[name="popupwindow-demo-transition-choice"]').on("change", function ( e ) {
- $("#popupContent2").popupwindow("option", "transition", $(this).attr("id").split("-").pop());
- });
-
+$( document ).one( "pageinit", "#popupwindow-demo", function () {
$("#btn_textbox_popup_cancel").on("vclick", function ( ev ) {
$("#textbox_popup").find("input").val("");
+ $("#textbox_popup").popup("close");
});
});