I have attempted to, but so far have been unable to confirm that I have done
it successfully.
var oIframe = document.getElementById("if");
var oDoc = oIframe.contentWindow || oIframe.contentDocument;
if (oDoc.document) {
oDoc = oDoc.document;
}
//add jquery to ifr
On 14/02/07, 15daysofjquery <[EMAIL PROTECTED]> wrote:
>
> How do I target an element inside of an iframe I've created on the page? In
> other words, I've used jQuery to create an iframe, and now I need to target
> all the p elements of the document inside that iframe.
>
> I've tried
>
> $("p",sel
How do I target an element inside of an iframe I've created on the page? In
other words, I've used jQuery to create an iframe, and now I need to target
all the p elements of the document inside that iframe.
I've tried
$("p",self.MyIFrame.document).click(function(){alert('asdf');});
and also