Wingman1487 Wingman1487 - 1 year ago 63
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.


Answer Source

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

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

Updated fiddle:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download