Get Name of nested <div> with JS

0
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!    
asked
1 answers
1

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?

answered