title: submit and close modal at same time
body: <p>We have a form within a modal window.</p>
  
  <p>I have a submit button, which saves to db. And I would like to simultaneously close the modal window.</p>
  
  <p>The function for close is correct, just not my usage lol.</p>
  
  <pre><code>&lt;input type="submit" name="upload_thumbnail" value="Save Thumbnail" id="save_thumb" onclick="$.lightbox().close();" /&gt;
  </code></pre>
  
  <p>The modal window , contains iframe with php / html within it, this form is part of that iframed html code.</p>
  
  <p>Any suggestions ?</p>