How to call a popup from a link inside another popup. Jquery Mobile

I have a popup like this:

<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:

<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.

I tried the regular way. Did not work!

$("#popup1").popup('close');
$("#pop").popup('open');

Even the above did not work!

Answers


JQM Popups cannot be chained. You have to fire the second after a timer delay.

See the JQM documentation and search for "chain": http://api.jquerymobile.com/popup/


Need Your Help

Use Logback access with Grails 3 webapp (Springboot) application deployed with java -jar

tomcat spring-boot logback grails-3.1

How do I configure grails 3 which uses logback as the default logging framework to log HTTPrequests of the embedded tomcat just like the tomcat application server does in creating a log-access log ...