> I have noticed another really strange bug(?) here, numbers with a leading
> zero come out wrong. like 0123 ends up as 83. Stranger yet, 18 is 18, 19 is
> 19 but 20 is 16? But it does not appear to be jQuery.

Leading zeros indicate the JS Interpreter that the number is octal,
that is, base 8.
Same as 0x for hexadecimal, base 16.
Use strings instead, '0123' won't cause any problems. If you have the
number in a var, just cast it like this:

my_num += '';

Cheers
--
Ariel Flesler
http://flesler.blogspot.com

Reply via email to