Javascript/jQuery "Gotchas"

Viewed 1767

What are some of the common Javascript and/or jQuery "gotchas" that you have seen or been tripped up by?

As an example, it was pointed out to me this morning that you have to be careful with the radix when doing parseInt(), because if your string starts with a 0, the radix will default to 8.

11 Answers
Related