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
Post a Comment