我想用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