<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
I checked the popup id's for the link and for the divisios and all are correct but the popup is not working and the divisions all always open.
I wrote in jquery this code
for(var i=page_index*items_per_page;i<max_elem;i++)
{
newcontent += '<div class="ui-block-a">' +'<div class="ui-body ui-body-d">' +
'<a href="#myPopup' + j + '" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all" >' +
'</a>'+
'<div data-role="popup" id="myPopup' + j + '" >'+
'<p>'+ "Artikel_Producer" + '<br />Artikel_price' + '</p>'+
'<a href="#page" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-icon-delete ui-btn-icon-notext ui-btn-right">Close</a>'+
'</div>'+
'</div></div>';
j++;
}
$('.rwd-example').html(newcontent);