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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:39:35+00:00 2026-06-14T00:39:35+00:00

I create a menu using UL element, I am using jQueryUI to show this

  • 0

I create a menu using UL element, I am using jQueryUI to show this menu.

<ul style="display:none" id="action_menu" class="menu">
    <li><a href="javascript:alert(213112);">Edit Translation</a></li>
    <li><a href="javascript:void(0);">Edit Comment</a></li>
    <li><a href="javascript:void(0);">Edit Bind</a></li>
    <li><a href="javascript:void(0);">Edit Reuse</a></li>
    <li><a href="javascript:void(0);">Edit Sync Up</a></li>
    <li><a href="javascript:void(0);">Export</a></li>
    <li><a href="javascript:void(0);">Show History</a></li>
    <li><a href="javascript:void(0);">Upload Screenshot</a></li>
</ul>

When a button is clicked, $(“#action_menu”).menu() can show this menu.
and I know how to show this menu, and now I have no idea how to hide this menu when mouse click on other place not click on the menu. I find so many examples, they add document click listener, and check whether the event target’s parent node is this menu. Like this link Hide dropdown menu jQuery does anyone have better idea, i wondering why jQueryUI doesn’t add an event or option for menu widget. Someone help me, thanks

  • 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-14T00:39:36+00:00Added an answer on June 14, 2026 at 12:39 am

    this is a general solution i don’t know about your plugin

    $(document).click(function (e)
    {
        var container = $(".menu");
    
        if (container.has(e.target).length === 0)
        {
            container.hide();
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I create a <select> menu using Javascript then attach it to the page. But
I'm trying to create some Menu Item with Image & Label, using barry's class
I want to create a floating footer menu using JavaScript and HTML & CSS
I am using this link from Oleg and Demo to create context menu. Is
My aim is to create a navigation menu using jquery. when the user rollover
I want to create a multilevel menu using jQuery. The main idea is by
I am trying to create pop up menu using Jquery mobile, by clicking the
The question is self-explaining, how to create a tearoff menu using GTKAda? I can't
I need to create HTML pop-up menu using Perl. Can anyone help me?
I'm using jQuery's .toggle method to create a menu that opens and closes when

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.