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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:27:21+00:00 2026-06-04T01:27:21+00:00

I am trying to use the jQuery UI 1.9 spinner for the quantity field

  • 0

I am trying to use the jQuery UI 1.9 spinner for the quantity field in a shopping cart application, and have run into a problem affecting IE6 – 9 (and maybe 10), but not Firefox or Chrome.

The issue is that the code I have in the change event of the spinner definition does not fire in IE when the spinner is spun only once, without focus first being applied to the input field itself i.e. just click on either the up/down spin button on an unselected spinner and then click off the spinner and no change event fires.


EDIT – I’ve created a jsfiddle for this to help illustrate the problem. The problem occurs in IE6 – 9, I haven’t tried in 10.

In IE make sure the focus is not on the spinner input field and just click the spinner add arrow once, then click elsewhere on the page. No alert is displayed. Interestingly, the problem does not occur if you put focus into the input field first i.e. click the input field, then the spinner arrow, then click away.

The jsfiddle does show that the change event is not firing, but as it’s running the source from the jQuery Github page, can’t show the extra focus event firing inside the spinner’s internal workings in IE.


To make sure it wasn’t anything I’d done, I took a copy of all the demo files in the current 1.9m7 milestone release and reproduced with that. To confirm the issue I added a few console log messages to see what was happening.

In IE9 an extra focus event fires in the _events focus (in jquery.ui.spinner.js).

This has the effect of updating this.previous twice, so the first time it is correct (as in the other browsers), but the second focus causes this.previous to be set to the same value as the current value, so when the blur event fires and it checks if this.previous !== this.element.val() they are the same and the change doesn’t fire.

This problem does not occur if you spin more than once, as the extra focus doesn’t fire so the previous value remains correct. Can anyone help me identify where the extra focus is being triggered, or if there’s a workaround?

I need a resolution to this for a project at work, and really don’t want to have to remove the spinner at this stage. Given jQuery’s aim of cross-browser compatability, I find it hard to believe there is such a fundamental issue affecting cross-browser compatability for a widget that’s been around (granted, not yet part of the current release) for a few years. How has nobody noticed before?

  • 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-04T01:27:23+00:00Added an answer on June 4, 2026 at 1:27 am

    I submitted a bug report to the jQuery team and it was promptly fixed. This question is therefore no longer an issue.

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

Sidebar

Related Questions

I'm trying to use jQuery to make an input field have different CSS when
I am trying to use jQuery to update a URL (in a text field)
I am trying to use jQuery to break right ascension and declination data into
In an ASP.NET MVC project I'm trying to use jQuery spinner plugin . All's
I am trying to use jquery autocomplete plugin in my application. It works well
I'm trying to use the latest version of the jquery.ui.spinner.js . http://wiki.jqueryui.com/w/page/12138077/Spinner The spinners
I am trying to use jQuery Autocomplete Plugin in my PHP web application. I
I'm trying to use jQuery.scrollTo plugin with accordion (where one block expands after clicking
I'm trying to use jQuery UI tabs much like a Master Page in ASP.Net.
I'm trying to use JQuery to select all of the TD 's in 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.