I have this genealogical tree, starting with a user (below is the jsFiddle).
This user has 2 options (one working, the other one is not operative for the moment), one of them (+) opens a popUp to: add a "couple", add a "child" and add a "parent".
Adding a child creates a new child under the parent, with the same options.
For children and couples the code works perfectly, with the .on("click") method from jQuery, but when the "parent" option is selected, those options doesn't triggers the .on("click") method.
This genealogical tree is got from internet. An <ul> with <li> foreach element, and nested <ul> inside a <li> if this element has a child. So, if I add a parent, I wrap all the entire existing <ul> into a new <li> and this one into a new <ul>.
Code: jsFiddle
Hope you can help me to understand why the parent .on("click") is not triggering like the children.