Link to home
Start Free TrialLog in
Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America

asked on

In jQuery, how do I get to the contents of an <object> #document <html> sequence?

I am injecting HTML code into a DIV via an <object> element.

I can navigate to the div that contains the content (div has id of "rhs_content") and I can see the contents in Chrome Dev Tools (F12):

 User generated image
but I cannot figure out how to navigate to the stuff inside of the <object> element.  What is #document?  Can an .html page have 2 <html> tags?

I've tried:

$("html body #mainwrapper #righthandside #rhs_content #temp2 #document")
$("html body #mainwrapper #righthandside #rhs_content #temp2 #document html")

But the console always returns [  ]

Thank you for your help.
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tom Knowlton

ASKER

thx