Access Parent from Popup
Use the context-parameter
$("#testdiv",parent.document)
But if you really use a popup, you need to access opener instead of parent
$("#testdiv",opener.document)
Show popup in Jquery
http://jqueryui.com/dialog/[
^]
Exchange Value using JQuery :
http://api.jquery.com/data/[
^]