Hi,
I am trying to make a menu that has many links and each link has its own sublist, this is what i am using..
<body>
<div id="menu">
<a href="#"><li>users <br /></a></li>
<a href="#"><li>product <br /></a></li>
<a href="#"><li>movies <br /></a></li>
<a href="#"><li>clips <br /></a></li>
<a href="#"><li>teaser <br /></a></li>
<a href="#"><li>trailer <br /></a></li>
<a href="#"><li>HDMovie <br /></a></li>
</div>
</body>
my jquery..
$(document).ready(function(){
$(".users").bind("click", function(){
$('#menu').fadeOut();
$('#sub_menu').fadeIn();
})
This is only for the users link to show its sublist. If i want to do the same with product, movies, and clips links do I have to copy and paste the function? Can anyone here give me a example of a function so i don't have to copy paste?
Thanks ;)