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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:18:46+00:00 2026-06-07T23:18:46+00:00

Fiddle: http://jsfiddle.net/TKWzH/8/ The Test Pop is the current function of the item. Test Pop

  • 0

Fiddle: http://jsfiddle.net/TKWzH/8/

The “Test Pop” is the current function of the item. “Test Pop 2” is what I would like my script to function as. However, the actual script has a lot more functions on the click execution than just closing the popup.

Is there a way to combine the on enter and on mouseup commands into one line?

$("#popup2 label").on('keyup || mouseup', function (event) {
    $('#popup2').css('display', 'none');
});

Something like that is what I’m looking for, but I want the key up to only function for enterkey keyup. As that is written, it happens for any key.

The reason I’m trying to do this is because I want to make the form keyboard accessible. As you can tell from the fiddle, if you navigate through Test Pop with the keyboard, you have to reopen the dialogue after you select a radio button.

  • 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-07T23:18:48+00:00Added an answer on June 7, 2026 at 11:18 pm

    Just use a space.

    $("#popup2 label").on('keyup mouseup', function (e) {
        if (e.type == 'keyup' && e.which != 13) return;
        $('#popup2').css('display', 'none');
    });
    

    From the docs:

     .on( events [, selector] [, data], handler(eventObject) )
    

    events One or more space-separated event types and optional namespaces, such as “click” or “keydown.myPlugin”.

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

Sidebar

Related Questions

Please see the fiddle ( http://jsfiddle.net/Jk6Bk/5/ ) I would like to add some spacing
Fiddle: http://jsfiddle.net/vuKqw/60/ What would allow the 'active' class to remain attached to an item
I have this fiddle : http://jsfiddle.net/XjeCf/1/ that works like I want and this one
Here's my current fiddle: http://jsfiddle.net/UjAQf/28/ I want to design the table in such a
Here's my current fiddle: http://jsfiddle.net/UjAQf/79/ My target table design is this: But I'm having
In this fiddle http://jsfiddle.net/SySRb/105/ , function init(); successfully checks for the existence of an
I have a script: see fiddle http://jsfiddle.net/patrioticcow/ERTWT/ . When i hover over image a
Here's my fiddle: http://jsfiddle.net/mikeritter/prsfM/28/ Here's my jQuery: $(document).ready(function(){ function howdy(n){ alert('Howdy '+n+'!'); } function
Check out this fiddle: http://jsfiddle.net/mattball/nWWSa/ var $lis = $('ul.innerfade > li'); function fadeThemOut() {
Fiddle: http://jsfiddle.net/MhWm5/16/ I have some dynamically generated table rows/values with dynamic IDs <td class=control-group>

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.