Using a context

by jenny on 26 April 2008 - 04:03pm in

$('.foobar', context)

...is the same as:

context.find('.foobar')

...but you can also pass in a DOM element:

$('.foobar', this)

...which would be the same as:

$(this).find('.foobar')