title: onclick="this.closest("form").submit()" does not fire when clicked
body: <p>I have following</p>
  
  <pre><code>&lt;div  class="delete_list left" onclick="this.closest("form").submit()"&gt;
    &lt;form action="deletelist.php" method="post" name="deletelist"&gt;
      &lt;input type="hidden" name="second_id" value="'.$row_second['second_id'].'"&gt;
    &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When i click div <code>submit()</code> does not work. Interestingly below code works perfect.</p>
  
  <pre><code>&lt;div  class="delete_list left" onclick="document.forms['deletelist'].submit()"&gt;
    &lt;form action="deletelist.php" method="post" name="deletelist"&gt;
      &lt;input type="hidden" name="second_id" value="'.$row_second['second_id'].'"&gt;
    &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I couldn't understand the difference.Thanks.</p>