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" );
精彩评论