title: group html table rows with enclosing tag
body: <p>I want to be able to access a subgroup of rows in a html table using a common property assigned to them – let's say I want a pair of rows to disappear using javascript. If it had worked, enclosing those rows with a div and assigning that div to a class would been perfect.</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;table&gt;
    &lt;tbody&gt;
      &lt;tr&gt;...&lt;/tr&gt;
      &lt;div class="hideme_sometimes"&gt;
        &lt;tr&gt;...&lt;/tr&gt;
        &lt;tr&gt;...&lt;/tr&gt;
      &lt;/div&gt;
      &lt;tr&gt;...&lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function(){$("div.hideme_sometimes").hide();}); 
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>But obviously you can't put parts of a table inside a div, or a span. Is there some other way of grouping <code>&lt;tr&gt;</code> elements to the same effect?</p>