I am trying to set a var to a Tagname nested inside of a class name. In other words, its an un-ordered list with a class name of “menu-nav” which also has several un-ordered lists nested inside of it which I would like to set a var to as well.
My website HTML is generated using a CMS so i’m unable to assign class names nor IDs to those nested unordered lists. I can’t use GetElementbyTagname because that would get all un-ordered lists, and I only one to get those nested inside of “menu-nav.
Setting a var for the “menu-nav” is the easy part. I would just use the GetElementByClassname for that. The problem is after I’ve set a var for that, how would I get the nested un-ordered lists which are nested inside the “menu-nav” root unordered list.
I just don’t know enough about javascript to figure this out on my own. Please help me out.