[jQuery] Trouble with $(expr, context) and iframe documents
[jQuery] Trouble with $(expr, context) and iframe documents
I'm trying to reference an element from within an iframe. The following normal javascript code works: var iframeDoc = window.frames[iframeName].document; var data = iframeDoc.getElementById(iframeElement); I'm trying to jqueryize the "data" variable as follows (using the actual element id name for the time being): var d2 = $("#inside_iframe_element",iframeDoc); This just yields [], however. How do I refer to an element within the iframe? -- View this message in context: http://www.nabble.com/Trouble-with-%24%28expr%2C-context%29-and-iframe-documents-tf2794146.html#a7795126 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/