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.
<table>
<tbody>
<tr>...</tr>
<div class="hideme_sometimes">
<tr>...</tr>
<tr>...</tr>
</div>
<tr>...</tr>
</tbody>
</table>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){$("div.hideme_sometimes").hide();});
</script>
But obviously you can't put parts of a table inside a div, or a span. Is there some other way of grouping <tr> elements to the same effect?