Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6754913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:20:15+00:00 2026-05-26T13:20:15+00:00

Check out the following: http://jsfiddle.net/marcsanders/hNN5T/ The menu functions as it should as far as

  • 0

Check out the following: http://jsfiddle.net/marcsanders/hNN5T/

The menu functions as it should as far as I see, but when one of the dropdown menu links is clicked I think the close function fires and so the dropdown menu link is not navigated too.

I have also tried to port this to a plugin but not having much luck – http://jsfiddle.net/UKthc/

Any help is much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:20:16+00:00Added an answer on May 26, 2026 at 1:20 pm

    The return false was in the wrong place I think. Try this…

    $(document).ready(function () {
    
            $('.drop').click(function() {
                var li = $(this), active = li.hasClass('active');
    
                close();
                if (!active) {
                    li.toggleClass('active').children('ul').toggle();
                    return false;
                }
    
            });
    
    
        function close() {
            $('.drop').removeClass('active').children('ul').hide();
        }
    
        $(document).bind('click',function() {
            close();
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Check out http://fube.ca in any browser but Firefox and you'll see that the cloud
check out the following test: http://binks.knobbits.org/webgl/texture3.html It's a simple test of cube textures. It
Check out the following screenshot: http://www.jesserosenfield.com/beta/descenders.png My problem is that descending (like the 7
Following Example 2 in http://knockoutjs.com/documentation/hasfocus-binding.html JSFiddle showing problem: http://jsfiddle.net/hXqFu/2/ It works great for both
I have the following code at JSfiddle: http://jsfiddle.net/ACG2D/ $(document).ready(function() { $('.testThis').click(function() { $('.regexValidation').each(function() {
I have a slightly vague question. I have the following in my code: http://jsfiddle.net/PMnmw/2/
Consider the following Fiddle: http://jsfiddle.net/wNrqu/ For the last 4 hours I have been trying
If the following string is what I want to url-encode, @test123: http://news.yahoo.com/fifa%E6%96%A5%E8%B3%87%E5%8D%83%E8%90%AC-%E5%8A%A9%E6%88%91%E8%B6%B3%E7%90%83%E5%8D%87%E7%B4%9A-185314701.html check out
I was going through following article http://www.codexterity.com/delphistrings.htm So, I decided to check out the
I'm trying to svn checkout the following: http://website.com/viewvc/tool but I get the error: SVN:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.