[英]How to call a popup from a link inside another popup. Jquery Mobile
I have a popup
like this: 我有一个这样的
popup
:
<div data-role="popup" id="popup1">
<a href="#pop" data-rel="popup">Link to open popup</a>
</div>
And the div
for the popup with id="pop"
is: popup with id="pop"
的div
为:
<div data-role="popup" id="pop">
<!-- Content Here -->
</div>
So how do I open the popup with id="popup"
from a link which is already inside a popup. 那么如何从弹出窗口内部的链接中
open the popup with id="popup"
窗口。
I tried the regular way. 我尝试了常规方式。 Did not work!
不工作!
$("#popup1").popup('close');
$("#pop").popup('open');
Even the above did not work! 甚至以上都没有用!
JQM Popups cannot be chained. JQM弹出窗口无法链接。 You have to fire the second after a timer delay.
您必须在计时器延迟后触发第二秒。
See the JQM documentation and search for "chain": http://api.jquerymobile.com/popup/ 请参阅JQM文档并搜索“链”: http : //api.jquerymobile.com/popup/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.