title: How to use onsubmit() to show a confirmation if there are multiple submit buttons on the same form?
body: <pre><code>&lt;form onsubmit="return confirm('Are you sure you want to rollback deletion of candidate table?')"&gt;
  &lt;input type='submit' name='delete' value='Undo' /&gt;
  &lt;input type='submit' name='no' value='No' /&gt;
  </code></pre>
  
  <p>when the user clicks on second submit button i.e <code>No</code> i want to display the confirmation dialogue as "Are you sure you want to commit the transaction."</p>