我想用Jquery mobile
創建一個對話框。我試圖參考已接受的答案in this SO question,但它對我無效。創建一個對話框JQuery Mobile
這裏是我的代碼:
<div data-role="page" id="first">
<!-- Code -->
<div id = "dialog" data-rel="dialog">
<div id = "errorText"></div>
<button id = "closeDialog">OK</button>
</div>
</div>
這裏是JS讓它(函數內部):
//Nothing checked. Cannot continue. Add error message to div
$('#errorText').html("You must check the checkbox next to \"I Agree\" to continue");
//Open Dialog
$('#dialog').dialog();
當達到創建對話框的代碼沒有任何反應。建議?
這不適合我使用測試版的工作。 – Homer 2011-06-30 14:46:45