I want to access a div element inside a iframe. This iframe load from a different domain.
below code I tried:
$('iframe').contents().find(".questions").width()
I want to access a div element inside a iframe. This iframe load from a different domain.
below code I tried:
$('iframe').contents().find(".questions").width()
Are there multiple .questions
class?
To get witdth of first one, try this:
$('iframe').contents().find(".questions:first").width();