[jQuery] how to address to iframe content with jquery ?
Hello,
so lets imagine i have some iframe inside my html page:
<iframe width="750" scrolling="no" height="255" src="http://
www.some_url.com/some_page.htm"></iframe>
how can i work with the loaded content ?
i was trying something like:
aa = $('iframe').html();
$("div > img", $(aa)).each(
function(){
if ($(this).parent('div').attr('style'))
{
$(this).parent('div').click(function(){
alert("Hello2");
});
}
});
to clarify this: i want to add onClick event to some IMG which is
inside DIV and this DIV inside this url http://www.some_url.com/some_page.htm
which is loaded in IFRAME...
how can i add some onClick event to some image which is loaded in
iframe ?
finally stuck :(