I have a fieldset in which I have a table with multiple tr and td . I have to hide all the td upon click event except the td that is clicked inside the fieldset. I tried traversing to the parent tr of the tds that have to be clicked and then set the css to "display:none" . But it seems to hide all the td instead.
Here is my fiddle. Could this be achieved using the same the same traversals .
$('#fieldset_QCNew table tbody tr td:nth-child('+index+')').css("display","none");