A
A
Anto2017-09-13 16:58:09
JavaScript
Anto, 2017-09-13 16:58:09

How to make one element active?

Good afternoon!
There is a menu, it has nested items, when the page is loaded, the first item should be expanded, and when you click on the other one, open and close first, Everything works on the site except for one class class = "d submenu-two active" property active is set to all nested menus which leads to the opening of all menu items when loading the site page, tell me how to make it so that only one first item would be initially active
https://jsfiddle.net/zojskzg3/10/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
leni_m, 2017-09-13
@ZIROKUL

Have you tried to read, to try to understand from the outside what you wrote? Only all sorts of dregs are clear, but the most important thing is not clear.
Your code, only jquery connected. Everything is working

tell me how to make it so that only one first item would be initially active
https://jsfiddle.net/zojskzg3/12/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question