开发者

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

开发者 https://www.devze.com 2023-04-09 02:52 出处:网络
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\"&g

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

精彩评论

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