skip to Main Content

I want the first li be opened by default and when I click on an "a" tag that is opened the ul following don't close – Jquery

Here my html : <ul id="navLeft"> <li> <a class="nav_a">aaaa</a> <ul class="children"> <li><a>1111</a></li> <li><a>1111</a></li> <li><a>1111</a></li> </ul> </li> <li> <a class="nav_a">bbbb</a> <ul class="children"> <li><a>2222</a></li> <li><a>2222</a></li> <li><a>2222</a></li> </ul> </li> <li> <a class="nav_a">cccc</a> <ul class="children"> <li><a>3333</a></li> <li><a>3333</a></li> <li><a>3333</a></li> </ul> </li> </ul> </body> CSS: .children{…

VIEW QUESTION
Back To Top
Search