title: Hide and Show number of rows in a table that are sharing the same ID
body: <p>I'm generating rows dynamically, I've added an ID value to <code>&lt;tr&gt;</code> tag, therefore each generated row has got the same ID. The problem is when I try to hide and show these rows, it's only hiding and showing the first row, even though there are many more.</p>
  
  <pre><code> &lt;tr style="color: lightgrey; display: none" id="deletedTrainingRecords"&gt;
                          &lt;td&gt;@d&lt;/td&gt;
                          &lt;td&gt;@e.TrainingDate.ToShortDateString()&lt;/td&gt;
                          &lt;td&gt;@e.DateAdded.ToShortDateString()&lt;/td&gt;
                          &lt;td&gt;@e.AddedBy&lt;/td&gt;
  
                          &lt;td class="@cls[0]"&gt;&lt;/td&gt;
                          &lt;td&gt;
                              &lt;a class="fa fa-flag-o" style="cursor: default" title="Deleted Record"&gt;&lt;/a&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
  </code></pre>