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 7176141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:26:53+00:00 2026-05-28T16:26:53+00:00

Hi I use this simple jquery : $(document).ready(function(e) { $(#langs_current).click(function(){ $(#langz).toggle(350); }); }); Currently

  • 0

Hi I use this simple jquery :

  $(document).ready(function(e) { 
    $("#langs_current").click(function(){    
        $("#langz").toggle(350);  
     });
   });

Currently the new div#langz is showing/hidding as I need it, but this happens only when I click on the link #langs_current.

I need it to autohide if user click out of those links. What is the best way ?

  • 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-28T16:26:54+00:00Added an answer on May 28, 2026 at 4:26 pm

    you can add a click event to the body of the page that would check a flag to see if you are currently showing or hiding the div#langz.

    var hideLangz = false;
    
    $(document).ready(function(e) {  
      $("#langs_current").click(function(){     
        $("#langz").toggle(350);   
        hideLangz = true;
      });
    
      $("body").click(function(){     
        if (hideLangz) {
          $("#langz").toggle(350);   
          hideLangz = false;
        }
      });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use this code to create a simple jquery carousel animation: $(document).ready(function() { var
I have simple form. I want to use jquery to prevent form submit. $(document).ready(function()
I am new to javascript and jquery. I want to use $(document).ready to register
jQuery(document).ready(function() { jQuery(#file_upload).uploadify({ 'uploader' : '/wp-content/plugins/amazon-s3-simple-upload-form/files/uploadify/uploadify.swf', 'script' : '/wp-content/plugins/amazon-s3-simple-upload-form/files/uploadify/uploadify.php', 'folder' : '/uploads', 'auto' :
I am trying to use jquery animate function to animate boxes but this simple
I use this code: http://blogswizards.com/plugin-development/sliding-boxes-and-captions-with-jquery On a simple gallery site I am building. Specifically
This question is simple. What function would I use in a PHP script to
I'm new to jQuery and I want to do this simple thing in a
In order to delete all .svn files/folders/subfolders in myfolder I use this simple line
I know how to get the scrollTop of a page, I use this simple

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.