i got stuck with getting dropdown values from ul --> li elements
i checked previous topics but can't find any info regarding document.getElementById or document.smth else. I'm trying to use it but everytime got an error document is Undefined..
i have the following structure div with classname --> ul --> li elements
i know how to iterate through them but i can't find the way to get values to put them into an array or list.
here is just simple example:
const dropdownList = document.querySelectorAll(Selector('.dropdown-menu').find('ul').find('li'));
console.log('Get first element: ', dropdownList.values);
I would appreciate any help or advise, thanks i advance