jquery trigger in iframe and action in parent frame -


i have simple setup of such:

<div id="main_area"> <iframe src="mydearframe.php" . . . ></iframe> ... ... ... <div id="stuff_to_do" ></div> <div> 

in mydeaframe.php have button. once button clicked, want things in stuff_to_do div in mother/parent document, jquery.

any ideas?

as long these files on same domain, following same origin policy. should able reference iframe as

$(parent.document).find('#stuff_to_do') 

this question quite similar having jquery inside of iframe modify parent window


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -