Thursday, September 8, 2011

Run JQuery in the context of another frame iframe

window.parent.frames[0].document

window.parent.theFrameID.document // which is more verbose

$('#test', window.parent.theFrameID.document).val('this is a test');

Reference:
http://stackoverflow.com/questions/539504/run-jquery-in-the-context-of-another-frame

No comments: