function getElement(){
var iBody = $("#frametest").contents().find(".eod-topbox").html();
document.getElementById("demo").innerHtml=iBody;
alert(iBody);
}
I am using this code snippet.I want to access anchor tag of this eod-topbox class and img tag of nested div and content of anchor tag also.
<div class="eod-topbox">
<a href="some link">dfdf</a>
<div id="something">
<img src="">
</div>
</div>