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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:47:29+00:00 2026-06-04T20:47:29+00:00

So I have noticed that there seems to be a glitch with using jQuery’s

  • 0

So I have noticed that there seems to be a glitch with using jQuery’s click() when inside of an element <div style="display: none;"></div>

Is it possible to get this to work?
I have tested it here, and seems to work.
http://jsfiddle.net/FBYhe/

I am using jQuery UI -> ComboBox widget.

This is my current code.

    <select name="labels" id="labelsList">
        <option>Filter By Label</option>
        <option selected>Show All</option>
        <option class="ClickMe">Filter By Label</option>
    </select>
    <script>
        $(document).ready(function(){
            $(".ClickMe").click(function() {
                alert('tets');
            });
        });
    </script>

So I get ZERO alerts with this, i’m not sure why, but I BELIEVE it has to do with Display:None.

Any help would be greatly appreciated!

  • 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-04T20:47:31+00:00Added an answer on June 4, 2026 at 8:47 pm

    If you are using the jQuery UI combobox autofill widget you are trying to get this to work onclick:

    <li class="ui-menu-item" role="menuitem">
      <a class="ui-corner-all" tabindex="-1">MENU ITEM</a>
    </li>
    

    That is not the same as the html in your post.

    You will need to bind to

    $(“.ui-menu-item”);

    if you want to execute something onclick of a jQuery UI widget

    or hack this

    $.widget( "ui.combobox", {
    .
    .
    .
        .click(function() {
          // close if already visible
          if ( input.autocomplete( "widget" ).is( ":visible" ) ) {
    
            // here I guess you want your thing
            // 
            input.autocomplete( "close" );
            return;
          }
    
          // work around a bug (likely same cause as #5265)
          $( this ).blur();
    
          // pass empty string as value to search for, displaying all results
          input.autocomplete( "search", "" );
          input.focus();
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have noticed that there are strange requests to my website trying to find
I am implementing the superfish menu and have noticed that there is a funny
I have noticed that sometimes people have to use multiple versions of jQuery in
Recently I have been using thrust a lot. I have noticed that in order
I have noticed that the highlighted term of a query are returned in a
I have noticed that it is possible to define a custom class and then
I have noticed that most Objective-C coders never use the self->ivar syntax when accessing
I have noticed that my application's Document folder is sometimes different. The workflow was
I have noticed that doing actions like implementing an interface, that a small rectangle
I have noticed that the Windows Vista/7 dialogs look MUCH better than just a

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.