I have a fancynox with an iframe and html document with form in it.
I try to access the form’s parent DOM element.
The form’s id is “form”
I tried:
$("#form").get(0).parentNode
document.getElementsByTagName('iframe').getElementById('form') //TypeError
document.getElementsByTagName('iframe').document //undefined
How can I access the form?
This should do what you want: