Reply
Minor jQuery Dropdown Menu Issue [Beginner]
Old 10-12-2009, 12:11 PM Minor jQuery Dropdown Menu Issue [Beginner]
Alex Fraiser's Avatar
Novice Talker

Posts: 13
Name: Alex
Trades: 0
Hey guys,

I am developing a dropdown menu using jQuery (I'm still a beginner). Basically, this is what I am having trouble with:

When I hover my mouse over "li.guide", the menu slides down as it should. But, when I try to click on or just hover on the menus that dropped down, the menu slides back up. Basically, the script I pasted below says this (the incorrect approach):

"Hover over li.guide, drop the menu down. When someone hovers off li.guide, collapse it."

And what i want to happen is someone hovers over li.guide and they move their mouse down to be able to click the content in the dropdown menu. But, when they hover their mouse off of the menu, it collapses.

I hope I was clear enough! Here's the code:

Code:
$(document).ready(function() {
    $('li.guide').mouseover(function() {
        $('ul#guides_sub').slideDown('medium');
    }).mouseout(function() {
        $('ul#guides_sub').slideUp('medium');
    });
});
I am just not sure how to change this code to how I want, but I know what I want it to do. Any help is very appreciated. Thanks!
Alex Fraiser is offline
Reply With Quote
View Public Profile Visit Alex Fraiser's homepage!
 
 
When You Register, These Ads Go Away!
Reply     « Reply to Minor jQuery Dropdown Menu Issue [Beginner]
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10534 seconds with 13 queries