title: nextUntil hasClass jQuery
body: <p>Here's my code
  <a href="https://i.stack.imgur.com/2iDT6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2iDT6.png" alt="enter image description here"></a></p>
  
  <p>I want to toggle closest class <code>'.wdm_bundled_item'</code> on <code>'.mainClass_</code>n<code>'</code></p>
  
  <p>What I had tried : </p>
  
  <pre><code>jQuery('.mainClass_1').on('click', function(e){
          e.preventDefault();
          $(this).nextUntil('.codeByBilal').toggle();
      });
  </code></pre>
  
  <p>Working fine, just the issue is it's toggling the last <code>tr</code> too when I click on <code>'.mainClass_4'</code></p>
  
  <p>Any suggestion please? with <code>nextUntil</code> or something else.
  Thanks</p>