I'm using the following code to hide the first child of class.
.remRef {
   display: none
}
.remRef~.remRef {
   display: block
}<table width="200" border="1">
  <tr>
    <td><a href="javascript:void(0);" class="remRef">link1</a></td>
  </tr>
  <tr>
    <td><a href="javascript:void(0);" class="remRef">link2</a></td>
  </tr>
  <tr>
    <td><a href="javascript:void(0);" class="remRef">link3</a></td>
  </tr>
</table>It's not working inside the table. Please help me to solve this.
 
     
    