How to add style to parent <li> item if child <ul> exists?

Posted by user1292760 on Stack Overflow See other posts from Stack Overflow or by user1292760
Published on 2012-03-26T11:21:15Z Indexed on 2012/03/26 11:29 UTC
Read the original article Hit count: 171

Filed under:
|
|

I'm trying to make a menu in advance to be seen whether there is a double nesting.

<ul class="parent">
 <li class="child"></li>
 <li class="child">
  <ul slass="nesting">
   <li></li>
   <li></li>
  </ul>
 </li>
<li class="child"></li>
</ul>

So ul class="nesting" hidden by default but appears during the hover of li class="child". I want to make another design on the li class="child" which have a nested ul. Another words how can i show nesting before hover by the means of Javascript/JQuery?

Thnaks in advance!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery