javascript - Toggle menu active -
hey doing menu , want when click item enter in active position , when item clicked changes clicked active , remove state last one, doing not working... appreciate if can me. html <div id="nav-ppal"> <ul class="nav-ppal"> <li><a class="btns-nav" id="0" href="#block-intro">01</a></li> <li><a class="btns-nav" id="1" href="#block-pq-zolfunza">02</a></li> <li><a class="btns-nav" id="2" href="#block-modulos-zolfunza">03</a></li> <li><a class="btns-nav" id="3" href="#block-seguridad">04</a></li> <li><a class="btns-nav" id="4" href="#block-desarrollo">05</a></li> <li><a class="btns-nav" id="5" href="#block-nuestra-ubic">06