Calling priority Nav, a lib that places the executing items inside a new drop-down, called "More", this dropdown is dynamically created in pure javascript as soon as it's needed. In it a button appears with class js-nav-toggle . I'm trying out some things, and I would like to change some things on that button, with pure javascript, I'm doing a test trying to find the js-nav-toggle class that is definitely in the document but only gives undefined.
link
I use this code that works fine on other elements that are written manually from the document.
%code%
What could be happening?
______ azszpr310823 ___
The variable %code% is a list of nodes of class %code% :
%pre%
You can not change the list at once. It is necessary to iterate every element of the list, and you can do this %code% :
%pre%
But if it is only 1 element, you can use the index %code% :
%pre%
You can also use %code% (if it is only 1 element) or %code% (1 or more):
%pre%
While %code% also creates a list of nodes equally to %code% , and if it is only 1 element, you also use the %code% index:
%pre%
Or:
%pre%
However, if it is only 1 element, it makes more sense to use %code% :
%pre%
If it's just 1 element, it does not make sense to create a list of nodes.
Example:
______ ___ azszpr310805
Hello @John,
Do you wanna change the color of priority nav class, it?
Via css u can do:
%pre%
or
If u can use jquery, try the following:
%pre%
___