Monday, December 15, 2014

Hiding the row or column in nested table


In this table, I have nested 2 tables with class identification.All you need is irrespective of multiple nested tables,you just need to pick their class or id and then loop all the rows or columns. // $('.second td:nth-child(2)').hide(); / The above line hides the second column in the table named 'second'. $(this).closest("#row1").hide(); This code hides the row in the second table that has row with row1 identification.
   
First Name Last Name City Email Address
MurugesanPandianChennaisomeuser1@example.com
GeethaMurugesaKovilpattisomeuser2@example.com
ShreeDhanyataMumbaisomeuser3@example.com
PandiNadarChennaisomeuser4@example.com
Department Prof.Name Location
ITMurugesa Pandian3F,248