title: javascript onclick return confirm then submit
body: <p>I need to confirm delete before submit form using javascript, i tried this code but it didnt work : </p>
  
  <pre><code>&lt;a href="#" onclick="return confirm('Confirm Delete'); $(this).closest('form').submit();"&gt; Delete&lt;/a&gt;
  </code></pre>