[jQuery] Set value in Parent

[jQuery] Set value in Parent


Hello,
I have a page in an Iframe and when the user clicks a image (href), I
want a value to be set in the parent page. I don't know why this is
not working...please assist.
In the iframe page , dollar1 is the id of the Imagebutton, then I have
a hidden variable id= setEndUser. On the parent page I have a textbox
id = Enduser.
$(function() {
$("#dollar1").bind("click",function() {
$("#EndUserT").parent().val( $("#setEndUser").val() );
});
});