Posts Tagged ‘html’

Accessing iFrame with jQuery

Monday, September 21st, 2009

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();