I have a menu that is created dynamically with javascript.
First it looks for for section elements with a certain attribute eg:
<section something="add"></section>
And adds them to the menu. It also needs to get the title that will appear on each menu item from each element, eg:
<section something="add" something2="Services"></section>
I don't need any help with the js I just want to know how to add the data to the elements and what names give to the attributes. How should I do it?