title: HTML Form created in javascript does not respond to .submit
body: <p>I have added a form to my html page dynamically using javascript. The .submit on the form does not work when I do this. However if I create the exact same form in html, it works as expected.</p>
  
  <p>Here is a fiddle: <a href="http://jsfiddle.net/dwha77g4/4/" rel="nofollow">http://jsfiddle.net/dwha77g4/4/</a></p>
  
  <p>The following code:</p>
  
  <pre><code>$('.submit-form').submit(function(e){
      alert("test");
      e.preventDefault();
  });
  </code></pre>
  
  <p>runs on the first button in the fiddle, but not the second dynamically created one.</p>