jQuery mobile open popup from popup
问题 I'm using jQuery mobile 1.9.1 min on PhoneGap. I have a list where each iten on click opens an actions popup: function showActions(index){ selectedIndex = index; $("#actionPopup").popup("open", {positionTo: '#list li:nth-child('+ index +')'}); } <div data-role="popup" id="actionPopup" data-overlay-theme="a"> <a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a> <ul data-role="listview"> <li data-role="divider"