title: jQuery: Submit form on paste
body: <p>A data entry person is putting email address into a form and it would be helpful if the form submitted each time he pasted in an address so it would be ready for the next paste.  Other code within the setTimeout also works fine--just not the form submission.  Thanks in advance for your help.</p>
  
  <pre><code>$("#email").on("paste", function(){
      setTimeout(function () {
          $("#cancelemail").submit();
      }, 0);
  });
  
  
  &lt;form action="done.php" method="post" id="cancelemail"&gt;
  
  Address to be removed: &lt;input id="email" name="email" type="text" /&gt;
  
  &lt;input type="submit" name="submit" value="Remove"&gt;
  
  &lt;/form&gt;
  </code></pre>