title: Submit form using specific button
body: <p>I have a page with many forms and each form may has more than one submit button and each button has some actions "<code>onclick</code>" which specified by html. </p>
  
  <p>I have created handler <strong>onclick via jquery</strong> for submit buttons which prevent default action and doing some work but then I need to submit this form. If i just simulate click on button - all actions triggered to <strong>onclick</strong> works once again.</p>
  
  <p>Any ideas about it?</p>
  
  <p>Abstract code example:</p>
  
  <pre><code>&lt;form&gt;
    &lt;input type='submit' name='first_button' onclick='doSomething()'&gt;
    &lt;input type='submit' name='second_button' onclick='doSomethingElse()'&gt;
  &lt;form&gt;
  </code></pre>