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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:33:04+00:00 2026-05-27T18:33:04+00:00

Please look at the code here : http://jsbin.com/esokic/10/edit#source When I click on customer support

  • 0

Please look at the code here : http://jsbin.com/esokic/10/edit#source

When I click on customer support a div is shown

What I want is when someone clicks out of the div, the div should hide, I tried a couple of things, but they don’t seem to work..

$(document.body).one("click", function() {$(".cust-support-outer").hide();
});

Also:

$("body").click(function(e){
    if(e.target.className !== "csupport-drop")
    {
      $(".cust-support-outer").hide();
    }       
});

Would appreciate any help…

–Arnab

  • 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-27T18:33:05+00:00Added an answer on May 27, 2026 at 6:33 pm

    Arnab
    I did this change in your js and worked

    try this, use this js code

      $(function(){
        $(".csupport-drop").click(function(){
        $(".csupport-drop").addClass("active-drop-tab");
        $(".cust-support-outer").show();
          return false
        });
    
      $(document).bind("click", function(e) {  
        if(!$(e.target).hasClass("get-daily-alerts-outer")){
          $(".get-daily-alerts-outer").hide()
        }
      });
    
      $(".close").click(function(){$(".get-daily-alerts-outer").hide();
       return false
      });
      $(".get-deal-alerts").click(function(){$(".get-daily-alerts-outer").show();
       return false
      });
    });
    

    I just changed how you bind the “click” event to the document and pass the Event object to the function so you can check over what element the click event was fire.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Look at the XML code here please: <TableLayout android:id=@+id/tableLayout1 android:layout_width=fill_parent android:layout_height=fill_parent android:padding=10dip xmlns:android=http://schemas.android.com/apk/res/android> <TableRow
Download source code here: http://www.eyeClaxton.com/download/delphi/ColorSwap.zip Yes, I want to convert something mostly blue to
am new here. i have a slight problem; PLease look at the following code
Please have a look on the code below .. <div id=click_me>Save</div> <div id=blocks_sortable> <div
Ok, please look at my problem: http://phone7forum.com/viewforum.php?f=2 http://phone7forum.com/viewtopic.php?f=2&t=4 I've been editing a phpBB forum
Please look at http://www.idea-palette.com I have multiple pages that are being faded in using
Please look at the code at the end to see the method I've been
Getting the above error in following code. How to rectify it. Thanks. Please look
Please have a look at the code below: import string from collections import defaultdict
Please take a look at this code: template<class T> class A { class base

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.