Iluvatar+ Posted February 21, 2012 Share Posted February 21, 2012 I have been able to pass a value to the body of the parent document, however i am trying to target a specific element (textbox) Here is the code i have used so far <script type="text/javascript"> $(document).ready(function(){ $("#AvatarButton").one("click", function(){ var imgSrc = "<img src='http://www.pubcon.com/banners/hawaii1.jpg'>"; $("#StepWrapper", parent.document.body).append(imgSrc); }); }); </script> Link to comment https://forums.phpfreaks.com/topic/257460-passing-a-value-from-an-iframe-to-a-element-textbox-of-its-parent/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.