title: Creating a form dynamically
body: <p>I use a search button that creates a form <strong>dynamically</strong> at the server side and returns it with Jquery syntax.
  After I fill-up the form and click on submit button, there is another .submit() Jquery function that suppose to be called to validate input before data is sent to the server.
  But, for some reason, this function is never called, and the data is request is sent.
  In more details:</p>
  
  <p>This is the form that the serach button creates dynamically at the server side and "prints" to html page with Jquery:</p>
  
  <pre><code>&lt;form action=... name="stockbuyform" class="stockbuyform" method="post"&gt;
  &lt;input type=text value="Insert purchasing amount"&gt;
  &lt;input type="submit" value="Click to purchase"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And here is the .submit() function  :</p>
  
  <pre><code>$(".stockbuyform").submit(function() {
      alert("Need to validate purchasing details");
  }
  </code></pre>
  
  <p>But whaen I click on purchase button, the .submit() function is never called.
  Does it mean that I can't use another Jquery call with the answer I got in the first call?</p>