Refering to the above code, i want to achieve add row functionality.
Parent can also be added mutiple times and with in each parent there can be many childs.
if i do add parent element id's/name's should increase by 1.
for eg:if i add parent
new row with text and select with ids parent.test and parent.test1 should appear.
With in this parent if i do add child then
new row with text and select with ids parent.child.test and parent.child.test1 should appear.