Wednesday, April 21, 2010

.closest does not mean closest!

I found out recently that jQuery's closest() function doesn't find the nearest instance of the selector, but instead find the nearest parent that matches the selector. This is a really important difference and I just thought I would highlight it!

No comments:

Post a Comment