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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:22:56+00:00 2026-05-24T11:22:56+00:00

jQuery documentation for change() says: For select boxes, checkboxes, and radio buttons, the event

  • 0

jQuery documentation for change() says:

For select boxes, checkboxes, and radio buttons, the event is fired immediately when the user makes a selection with the mouse, but for the other element types the event is deferred until the element loses focus.

I’ve tested change() on select boxes in different browsers and it fires when the control looses focus. This makes the user feel nothing is happening when he changes options in the select box.

my solution to this is using click() event instead, but I don’t like it since the function is run with every click and the user can’t use keyboard to change options.

Is there a way to make change() fire as the documentation says.

  • 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-24T11:22:56+00:00Added an answer on May 24, 2026 at 11:22 am

    use:

    .bind('change click keypress', ...)
    

    as this event would be fired more times than selection was changed (there is no ideal solution to that), you have to check if anything was changed from the last time

    // check if changed
    if( $(this).data('selection') != $('option:selected', this).val() ) {
        // if so, update hidden data
        (this).data('selection', $('option:selected', this).val());
    
        ... your code
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have always used the mouseover event, but while reading the jQuery documentation I
I'm trying to iterate through an array of elements. jQuery's documentation says: jquery.Each() documentation
When using the example code from the jQuery documentation for the keypress event handler,
The jQuery documentation covers the function jQuery.extend()s twice, giving it different definitions. The first
The jQuery documentation for the .toggle() method states: The .toggle() method is provided for
The documentation of jQuery.animate states that The only required parameter is a map of
I have tried to find some decent documentation on traversing in jQuery, but have
Beyond the official documentation, are there any recommended resources for learning to build jQuery
I want to trigger .change() on select, if I change option in select element
Based on the jquery ui button documentation, I tried the following: <jquery>$(#test).button({ icons: {

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.