etc. There could be any number of parents or any number of childs per parent (even 0). There will never be a child of a child. What I need to do is an on click "if child, do this, if parent, do this".
Some results have been hidden because they may be inaccessible to you
Show inaccessible results