Doed anyone know if there is a way to do something like this:
How to Create a Collapsible DIV with Javascript and CSS

but to hide table rows <tr> instead?

The problem I am running into is the method in that tutorial relies on is document.getElementById, but in order to hide multiple tr rows I would have to assign them classes instead of ids.