title: stop bubbling event onclick
body: <p>I have the following</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;p&gt;haha&lt;/p&gt;
  &lt;button class="btn btn-light" onclick="nextSibling.classList.toggle('d-none');"&gt;
    &lt;i class="fa fa-ellipsis-h"&gt;&lt;/i&gt;
  &lt;/button&gt;
  &lt;div class="prev-content d-none"&gt;
    &lt;p&gt;second reply from second account&lt;/p&gt;
    &lt;br&gt;
    &lt;button class="btn btn-light" onclick="nextSibling.classList.toggle('d-none');"&gt;
      &lt;i class="fa fa-ellipsis-h"&gt;&lt;/i&gt;
    &lt;/button&gt;
    &lt;div class="prev-content d-none"&gt;
      &lt;p&gt;reply from system&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I want to show only next sibling <code>&lt;div class=&quot;prev-content&quot;&gt;</code> by click on button, but there is some strange behavior. It shows all divs or it hides all divs. I think the reason in bubbling events.</p>
  <p>How can I resolve that?</p>