[jQuery] ul li ... hide an slide --- Beginner!
Hello everybody,
this post begins as so often. I´m a newbie and I need some help from
other jquery user. I think it´s an easy thing for those who has some
more expierience than I.
I have a list (simplified):
<ul #menue>
- <li>projects
- - <ul>
- - - <li>Project 1<li>
- - - <li>Project 2<li>
- -</ul>
-</li>
-<li>Contact</li>
</ul>
The list elements have some different classes. The list is provided
from an CMS. In the beginning the submenus should be hidden. What I
want to achieve is simple: The click on the menu 'project' should
slide down the ul with the projects. This is my try.
$(document).ready(function(){
$("ul#menue li ul li a.menu-child").hide(); // this is work
$("ul#menue li a").click(function(){
$(this).siblings().slideDown("fast");
return false;
});
});
I´ve tried a different things but it won´t work. I´m sure someone of
yours could help me. A link to helpful sites is welcome, too.
Thank you all.
Frika