Table Rows Toggle

Table Rows Toggle

I have a table with multiple rows (<tr>).

I have 3 types of rows. Two being headers identified by class Year and Month. The 3rd type is just data. 

Essentially it's like a TreeView but stored in a table.

When a user clicks on a Year I want to toggle all other years and just show this one. Same with months but inside that year only.

Any ideas?