Wingman1487 Wingman1487 - 5 months ago 26
HTML Question

JQuery show only when first <td> is clicked

I've pieced together some stuff to make this work, it does exactly what I want it to do, however I only want the rows below the parent to show when the #parentClick (date) is clicked and not the rest of the

in the parent row is clicked. The idea is that all the numbers that are here will hyperlink over to another page, including the roll up ones in the parent.



Just check to see if the original clicked element is the trigger element using

var originalElement =;
if($(originalElement).attr('id') == 'parentClick'){

Updated fiddle: