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> Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.