0
In HTML
I have this footer :
<div data-role="footer" data-position="fixed" data-theme="c" data-tap-toogle="false">
<div data-role="navbar" data-grid="c">
<ul>
<li><a class = "nav" href="#" id="btnCl">1</a></li>
<li><a class = "ui-btn-active nav" href="#">2</a></li>
<li><a class = "nav" href="#" >3</a></li>
<li><a class = "nav" href="#" id="btnDef">4</a></li>
</ul>
</div>
</div>
And I created this popup :
<div data-role="popup" id="popupMenu" data-theme="b">
<ul data-role="listview" data-inset="true" style="min-width:210px;">
<li><a href="#">A</a></li>
<li><a href="#">B</a></li>
<li><a href="#">C</a></li>
<li><a href="#">D</a></li>
</ul>
</div>
And created on the page Javascript this function which should, when clicking on the tab 1
of footer
open the popup
:
$('#btnCl').click(function () {
$("#popupMenu").popup("open");
});
Problem:
When you press the tab 1
of footer
nothing happens...
I don’t want the open popup to be a new window. I was trying to do something like this http://prntscr.com/7php72
– msm.oliveira
You want a lightbox with a content inside, correct?
– Tiago Boeing
Check out an example of
colorbox
: http://www.jacklmoore.com/colorbox/example1/ Click on inline html– Tiago Boeing
yes, something like that. That when I click, in this case, on the 1st tab, opens this window with the 4 buttons
– msm.oliveira
I was trying to build on this: http://demos.jquerymobile.com/1.4.5/popup/#&ui-state=dialog (in the example of dialog)
– msm.oliveira