Jquery Mobile弹出窗口不会关闭

时间:2014-04-28 19:54:34

标签: jquery jquery-mobile popup

我一直在使用jquery mobile一段时间并使用各种弹出窗口,今天我做了一个错误并且不会关闭。

以下是弹出窗口的代码:

<div data-role="popup" id="questPop">
test
</div>

我正在使用$("#questPop").popup("open");

打开它

$("#questPop").popup("close");

结束

Firebug给了我TypeError: this.options.container is undefined

和Chrome说Uncaught TypeError: Cannot read property 'one' of undefined

1 个答案:

答案 0 :(得分:0)

您应该将此div放在另一个div中,使用类ui-container