24 ways to impress your friends

Jump to menu

Vote up?

Bart Lewis

In regards to $(’.class .other’) versus $(’.class’).find(’.other’), the docs have this to say:

Internally, selector context is implemented with the .find() method, so $(‘span’, this) is equivalent to $(this).find(‘span’).