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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:54:07+00:00 2026-05-11T06:54:07+00:00

I have a dropdown that triggers an ajax call when its changed: $(‘.travel-to’).change(function(){ $.ajax({

  • 0

I have a dropdown that triggers an ajax call when its changed:

$('.travel-to').change(function(){       $.ajax({         type: 'GET',         url: '/inc/rates/rates-viewer.php',         data: 'shtech=y&c_name='+escape($(this).val()),         success: function(html){             $('.rates-viewer').html(html);             $('.rates-viewer tr.numbers td').css({ opacity: 0 }).fadeTo('slow',1);         }     }); }); 

My problem is, in Firefox, using the up/down cursor keys to cycle through the dropdown options, doesn’t trigger the js onChange() event. It’s ok in IE.

How can I make Firefox see the up/down cursors as an onChange? Can I do an either/or on the event, to make either an onChange or a keypress trigger the same thing?

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. 2026-05-11T06:54:07+00:00Added an answer on May 11, 2026 at 6:54 am

    You’re actually taking advantage of a bug in IE. Firefox supports onChange correctly, as it’s not supposed to fire until the browser loses focus of the select field. (I answered a question yesterday about this very issue, in fact.) It’s actually kind of dangerous to use onChange with a select, especially because there’s no way for keyboard only users to skip some options. (On top of that, the mouse wheel seems to spin by multiple answers, but it actually fires onChange for each entry it passes by on IE.)

    If you really want the event to fire whenever someone presses up or down, I would hook into the onKeyPress or onKeyDown events to fire whenever the ‘up’ or ‘down’ key is pressed.

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

Sidebar

Related Questions

I have a dropdown list which is populated via a jquery ajax call when
I have a page that postbacks on a dropdown list selection (using AJAX update
I have a drop down list that triggers an updatepanel when the index is
I have a dropdown list that stores name/value pairs. The dropdown appears in each
i have a time dropdown that shows hour in one select, minutes in another
I have a dropdown menu that is filled by a mysql database. I need
For example I have a dropdown box that gets a town from the table
I have a webpage written in HTML. I have a dropdown list that is
I have a CSS dropdown menu that is functioning how I want it to
I have a webpage built with a dropdown that has a list of books.

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.