Jump to content

Passing a value from an iframe to a element (textbox) of it's parent


Iluvatar+

Recommended Posts

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.