View Single Post
Old 09-19-2011, 06:52 PM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,335
Thanks: 13
Thanked 207 Times in 207 Posts
DanInMa is on a distinguished road
1. you can just use plain old CSS to take care of it

2. you dont need those functions

css:
Code:
.topnav li ul{
display:none;
}
Code:
$(".topnav > li").hover(
  function () {
   $(this).find('ul').toggle;
  }, 
  function () {
    $(this).find('ul').toggle;
  }
);
or maybe,

Code:
$(".topnav > li").hover(
  function () {
   $(this).find('ul').slideToggle;
  }, 
  function () {
    $(this).find('ul').slideToggle;
  }
);
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users

Last edited by DanInMa; 09-19-2011 at 06:56 PM..
DanInMa is offline   Reply With Quote
Users who have thanked DanInMa for this post:
Jenny Dithe (09-20-2011)