SharePoint's built-in navigation appears to create a <ul>
inside of a <div>
, but the id on this inner <ul>
appears to change between pages.
In the two below screenshots are examples of the same built-in navigation, but on different pages (notice the id's are zz10_RootAspMenu
vs zz11_RootAspMenu
).
I am attempting to make an add-in that can target and replace this <ul>
with my own custom menu.
Any idea how this zz___
id is determined and whether there are other variations that can be seen? Is this a good id to use as a hook for my Javascript or is there something else that may work better?