开发者

Jquery mobile: how to close a pop up dialog page from code?

I am opening a pop-up dialog like-

<a href="routeEdit.php" data-ro开发者_Go百科le="button"  data-icon="gear" data-inline="true" data-theme="b" data-transition="pop" data-rel="dialog">Edit</a>

Now, from that page, calling a method submit().

How will i close the pop-up from submit() method- without redirecting to main page?


$('#myDialog').dialog('close');

Try above coding. It's working for me.


If you use pop in jQ Mobile 1.3.0,then

 $("#popupLogin").popup('close');

wourld be used.


Try this:

$(".ui-popup").popup( "close" );
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜