Kerm Posted February 22, 2012 Share Posted February 22, 2012 I need to first menu items have been disclosed, bc of that i need some how add class to red <ul> tags, here need some jquery script, but i cant made it.. <ul class="tree" style="display: block"> <li> <span class="grower"></span> <a href="" title="">Link</a> <ul style="display:none"> <li> <span class="grower"></span> <a href="" title="">Link</a> <ul> <li>...</li> <li class="last">...</li> </ul> </li> <li class="last">...</li> </ul> </li> ........... more menu items ......... <li> <span class="grower"></span> <a href="" title="">Link</a> <ul style="display:none"> <li> <span class="grower"></span> <a href="" title="">Link</a> <ul> <li>...</li> <li class="last">...</li> </ul> </li> <li class="last">...</li> </ul> </li> </ul> Link to comment Share on other sites More sharing options...
Kerm Posted February 23, 2012 Author Share Posted February 23, 2012 I found answer... $('ul.tree li > ul:hidden').not("ul li ul li ul").show(); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now