title: How to return a value from Fancybox
body: <p>I have a Fancybox that opens up another aspx.page which loads a DropDownList into the fancybox. Then I need the user to select a value from the list. I wanted to know if it is possible to return that selected value to the page I called the fancybox from.</p>
  
  <p>Ex: I'm on website/test1.aspx.  Test1.aspx calles a fancybox that loads Test2.aspx in the fancybox. Test2.aspx has the ddl, the user selects a value from the ddl, then fancybox closes and returns the selected value back to Test1.aspx</p>
  
  <p>Here is my fancybox:</p>
  
  <pre><code>$.fancybox({
                  'autoScale': false,
                  'type': 'iframe',
                  'height': 800,
                  'width': 800,
                  'href': 'Utilities/MoveFileTemplate.aspx?ExpenseID=' + $(this).children(':first').html(),
                  onComplete: function () {
                      $('#fancybox-overlay').unbind();
                  }
              });
  </code></pre>
  
  <p>In MovingFileTemplate.aspx I have a hidden field that gets assigned the selected value from the DropDownList</p>