I have embeded jQuery mobile page using in my HTML page, but when I try to access its internal div tag using jQuery, the find method returns nothing.
HTML With jQuery
<iframe id="myframe" src="../codiqa/mobile.htm"
style="width: 500px; height: 520px;
border: 1px solid #ccc; margin-top:20px;">
</iframe>
here
$("#myframe").load(function(){
alert($(this).contents().find('#mobilebutton').html());
});
mobile code in iframe
<div id="mobilebutton" data-role="button">Mobile Button</div>
Header
Footer