Skip to main content

Bug Tracker

Side navigation

#12997 closed bug (notabug)

Opened December 03, 2012 03:46PM UTC

Closed December 03, 2012 03:56PM UTC

Values not read correctly from input

Reported by: netlorzakawin@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

Quite a considerable bug if you ask me...

(Tried to recreate the bug in jsbin and it would only run the jQuery in the edit mode)

what I can see jQuery will read the numbers off, left to right.

If the number at the very left is lower than the first number on the left of the second input, e.g. (inp1 = 5, inp2 = 44) then it believes inp1 is the higher number, however this is not the case.

Attachments (0)
Change History (2)

Changed December 03, 2012 03:54PM UTC by netlorzakawin@gmail.com comment:1

http://jsbin.com/welcome/56548

Here is the recreation. Couldn't get it working at first, but now it works as it should

Changed December 03, 2012 03:56PM UTC by scottgonzalez comment:2

resolution: → notabug
status: newclosed

You're comparing strings, not numbers. This is unrelated to jQuery, please ask for help on StackOverflow.