I have a table full of data. Every second row is a child row of every first row. Therefore, each child row is hidden until I click on the parent row. After that, the child lines then disappear below the parents using jQuery.
How would I postpone child lines under parent lines so that they are explicitly child nodes for parents?
Ive tried adding small elements to the child strings, but that just doesn't look right. He finishes crushing the first lines as I expand my ranks.
Hope this doesn't sound like nonsense ...
//HTML & CSS <table> <tr> <th id="clickDiv3"></th> <th>Firstname</th> <th>Lastname</th> </tr> <tr> <th></th> <td class="showThird">Peter</td> <td class="showThird">Griffin</td> </tr> <tr> <th></th> <td class="showThird">Lois</td> <td class="showThird">Griffin</td> </tr> </table> //JS $("#clickDiv3").click(function(){ $(".showThird").slideDown(".500").fadeIn(".200"); });
Any help or advice would be greatly appreciated!
source share