Get Name of nested <div> with JS

Hi, I have a <div>-container with “1 to *” nested <div>-children. I would like to get the names of all nested childrens in order to create child-objects out of them and associate it with a specific “parent” object. I my opinion it would be the best to return a list in order to loop over it. At the moment everything works hard-coded, which I don’t like and is definitly not best-practice.   Parent item in red, children in green:   I need this, because I steer the visibility of multiple Datagrid2 filters based on dynamic classes.   Thx!    
1 answers

Hi Tjark,

Why would you use divs and JS in this case? Wouldn't it be better to just render Mendix components and execute functionality based off that?