title: Submit and onclick not working together
body: <pre><code>&lt;input type="submit" class="sub" onClick="exefunction2()" id="button"&gt;
  </code></pre>
  
  <p>When I click on the submit button <code>onClick</code> is not working. How can I fix this? I need to work this on submitting the form because <code>onClick</code> event contains values.</p>