21
Sep

Accessing iFrame with jQuery

by admin

Assuming you have

<iframe id="iframeID" ...></iframe>

Iframe contains div with id=”someID”:

<div id="someID">Hello world!</div>

Need get div’s text?

$('#iframeID').contents().find('#someID').html();

Tags: , , ,

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply