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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:34:09+00:00 2026-06-18T00:34:09+00:00

Is there a way to ‘undo’ functions in jQuery? Let me explain.. I have

  • 0

Is there a way to ‘undo’ functions in jQuery? Let me explain.. I have a function which recreates exactly the select html tag. As you know with a select tag, clicking on a list item select that one, when clicking outside the select tag, the whole dropdown list closes. The selecting works fine, but the closing isn’t. I though this would work with the event.stopPropagation() event object but it doesn’t. Is there any other solution for this?

Demo: http://jsfiddle.net/cmAtc/

  • 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-18T00:34:10+00:00Added an answer on June 18, 2026 at 12:34 am

    There is really nothing like what you are asking for that is built into jQuery natively. You have to do it on your own.

    My suggestion would be to bind to the document:

    $(document).on('click', function () {
        $(".dropdownlist li").parent().children(":not(.selected)").hide();
    });
    

    You already have the stopPropagation that would prevent this from being triggered when you click the list too.

    http://jsfiddle.net/cmAtc/1/

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

Sidebar

Related Questions

Is there way to override jQuery's core functions ? Say I wanted to add
Is there way to override jQuery's core functions ? Say I wanted to add
Is there way to copy a file into Plone with WebDAV and have Plone
Is there way to find out if Java is running on a platform which
is there way to create a rule in the jquery validiation plugin that allows
Is there way to change the orientation of the emulator in runtime. I have
Is there way to or it is possible to do it using javascript/jQuery? Based
Is there way to tell IntelliJ IDEA which output folder to use for GWT
Is there way to select object by their specific tag without the use of
Is there way to associate a javascript function to a user control? Lets say

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.