title: Disabling form inputs/selects/etc on.submit, data is not sent to an iframe
body: <p>How can i disable inputs/selects/file inputs etc on submit event if the target of the form is an iframe?</p>
  
  <p>Here's the <a href="http://sandbox.emiliocarrino.it/test_01.php" rel="nofollow">link</a> of a "working" example of the issue i'm having.</p>
  
  <p>Here you can see the code.</p>
  
  <pre><code>&lt;?php
          if (isset($_REQUEST['iframe'])) {
                  if (isset($_POST['name_1'])) {
                          echo 'POST PIENO&lt;br /&gt;';
                  } else {
                          echo 'POST VUOTO&lt;br /&gt;';       
                  }
                  echo '&lt;pre&gt;'.print_r($_POST, true).'&lt;/pre&gt;';
                  die();
          }
  ?&gt;
  &lt;html&gt;
          &lt;head&gt;
                  &lt;script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript" language="javascript"&gt;&lt;/script&gt;
                  &lt;script&gt;
                          function disableOnSubmit() {
                                  $(this).attr('disabled', true);
                                  $('#button2').attr('disabled', false);
                                  $('#form').submit(function(e){
                                          $(this).find('input').attr('disabled', true);
                                  });
                          }
                          function enableOnSubmit() {
                                  $(this).attr('disabled', true);
                                  $('#button1').attr('disabled', false);
                                  $('#form').find('input').attr('disabled', false);
                                  $('#form').unbind();
                          }
                          $(document).ready(function(){
                                  $('#button1').click(disableOnSubmit);
                                  $('#button2').click(enableOnSubmit);
                          });
                  &lt;/script&gt;
          &lt;/head&gt;
          &lt;body&gt;
                  &lt;input type="button" id="button1" value="Disabled on Submit" /&gt;
                  &lt;input type="button" id="button2" disabled value="Enabled on Submit" /&gt;
                  &lt;form action="&lt;?=$_SERVER['PHP_SELF']?&gt;?iframe" method="post" id="form" target="iframe"&gt;
                          &lt;input type="text" name="name_1" value="value_1" /&gt;
                          &lt;input type="text" name="name_2" value="value_2" /&gt;
                          &lt;input type="text" name="name_3" value="value_3" /&gt;
                          &lt;input type="hidden" name="iframe" value="true" /&gt;
                          &lt;input type="submit" value="submit" /&gt;
                  &lt;/form&gt;
                  &lt;iframe src="&lt;?=$_SERVER['PHP_SELF']?&gt;?iframe" name="iframe" /&gt;
          &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>