How to inject the same panel into multiple pages using jquery mobile
jQuery Mobile >= 1.4 Solution one: Use an External panel that can be accessed from any page, this is in case you want to have the same panel contents in all pages. Append panel to $.mobile.pageContainer once only on pagebeforecreate and then enhance the panel using $(“.selector”).panel(). var panel=”<div data-role=”panel” id=”mypanel” data-position=”right” data-display=”push”><h1>Panel</h1><p>stuff</p></div>”; $(document).one(‘pagebeforecreate’, function … Read more