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

  • Home
  • SEARCH
  • 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 8710927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:45:00+00:00 2026-06-13T04:45:00+00:00

i have a problem with this script: http://jsfiddle.net/bZw83/ It toggles a tab with language

  • 0

i have a problem with this script:
http://jsfiddle.net/bZw83/

It toggles a tab with language selection in or out the screen if a click occurs inside the tab.
Now i’m stuck, i tried to write a function that toggles the tab out of the screen if the click is outside the tab usin something like

$('html').click(function() {...});

but i cannot exclude the area of the tab from firing the event.
I tried using event.stopPropagation() but i’ not able to achieve the goal :-/

Can someone help me figure this out?

Thank you very much

  • 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-06-13T04:45:02+00:00Added an answer on June 13, 2026 at 4:45 am

    You can create a handler for the document, and then check if it the #navigation or a child of it.

    Seee: http://jsfiddle.net/bZw83/1/

    $(document).click(function(e) {
        $target = $(e.target);
        var is = $target.is('#navigation');
        var isChild = $target.parents('#navigation').length;
    
        if(!(is) && !(isChild)) {
            $('a', $(this)).stop().animate({
                'marginLeft': '-44px'
            }, 200);
            stato = "chiuso";
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I have a problem with this http://jsfiddle.net/E7dGA/1/ When the script starts and you
In this JSFiddle http://jsfiddle.net/JQ6qF/ have I striped down the problem. Try click on Save
THIS IS THE FULL SCRIPT http://goo.gl/HoCxk I have a problem with this function: $('.message').click(function(){
I have a CSS/jQuery Checkbox style script: http://jsfiddle.net/BwaCD/ The problem is, in current browsers
i have this script found here http://jsfiddle.net/g4txt/ i am using this carousel http://www.thomaslanciaux.pro/jquery/jquery_carousel.htm the
We're using this script -- http://jsfiddle.net/6t74T/4/ -- which we learned about in this terrific
I have this javascript code that creates a slider: http://jsfiddle.net/samccone/ZMkkd/ Now, i want to
i have this issue http://jsfiddle.net/valerioMassacci/LdCqX/ i have a specific div comments that onclick show
I have seen this example: http://jsfiddle.net/UwEe2/306/ that is implemented with scrollleft . Now I
I have a simple script that closes a DIV. An example is here: http://jsfiddle.net/22fTm/3/

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.