Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Hey!
There is support for nested menu items:
codepen.io/lkp/pen/vOPgzY
In Google, everything is jam-packed on a similar issue.
var l = location.href.split("#")[0]; //Отбросим хэш
[].some.call(document.querySelectorAll("#punkti > a"), function(a){
//Добавим нужному пункту класс active
if(a.href == l) return a.classList.add("active"), true;
});
Here is the answer to your question - https://www.pandoge.com/moduli_i_skripty/vydelyaem...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question