0
如何關閉一個jQuery Mobile的對話與代碼?jQuery Mobile的1.4.5關閉對話框
我使用jQuery移動1.4.5,我已經創建了一個提交按鈕這樣的對話:
<div data-role="page" data-dialog="true" id="settings" data-close-btn="right">
<!-- All content in here -->
<input type="submit" id="btnSaveDefault" data-role="button" data-icon="check" value="Save" />
</div>
我的按鈕有一個JavaScript函數:
$("#btnSaveDefault").click(function() {
// Need a close dialog function here
});
任何幫助將不勝感激,歡呼。
通常你會以'$( 「#設置」)對話框( 「親密」);',但不知何故,我得到一個錯誤,當我做你的HTML。 – TheWandererr
是的,我經歷過太:/ –
可能是因爲你的** **對話框你** **頁在同一時間 – TheWandererr