title: jQuery iframe form submit
body: <p>Is there any way to submit an iframed form from jQuery? What I have is the following:</p>
  
  <pre><code>$('button#bookingButton').click(function(){
      $('&lt;iframe id="externalSite" class="externalSite" src="/form/page" /&gt;').dialog({
          title:'Form', 
          autoOpen: true, 
          width: 800, 
          height: 600, 
          modal: false, 
          resizable: false,
          buttons:{
              'Close':function(){$(this).dialog("close");},
              'Add Booking':function(){$('form#bookingForm').submit();}
          }
      }).width(800 - 25);
  });
  </code></pre>
  
  <p>This creates a jQuery ui dialog which has an iframe within it. This works fine and the regular submit button works fine however the jQuery button does not submit the form.</p>