title: jQuery Window Opener Element
body: <p>I have code like this repeated multiple times on my main page (it's dynamically generated).</p>
  
  <pre><code>&lt;input type='text' name='pois[]' /&gt;
  &lt;a onclick="window.open('file.php', 'searchPoi', 'width=800, height=500')" class='btn btn-default' id='searchPoiBtn'&gt;Edit&lt;/a&gt;
  </code></pre>
  
  <p>What I'm trying to do, is on the popup page that opens (file.php), modify the contents of the closest text box to that button (on the parent page), based on what the user selects in the popup.</p>
  
  <p>I know how .closest() works, but can't get it working right when dealing with the parent window.. Any ideas?</p>