1

First I'd like to start by saying I'm very new to jquery and pretty new to JavaScript as well.

I'm looking to add some jquery/javascript to a css menu to create a delay between options to prevent a the options closing before a user gets to select it. I did some research and found this How to add a delay to CSS Vertical Dropdown Menu

But it seems to do the opposite which delays the opening not the closing of the sub menus.

Here is what I have http://jsfiddle.net/5jd7c/6/

Note that if you try to go directly from set 1 to opt 2 by going diagonally it closes the option and you end up in set 2 instead.

Thank you in Advance.

2 Answers 2

1

Based on what you've said, I think you want the hoverIntent jQuery plugin. It does exactly what you describe and is very stable.

Much easier than doing it from scratch.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for that. That is the functionally I'm trying to get. Now I'm just having a hard time making it actually work.
1

You need to use the jQuery plugin hoverIntent that mentioned above. I created a quick sample for jsfiddle

I set the delay only on the work menu item, the timeout is 1 second(1000 ms) and i added an id for work li, and id for its ui list

hope that help.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.