views:

13

answers:

1

Can I, in jQuery, combine $(this) with another element selector?

+1  A: 

It's:

$('.something', this)

They're equivalent, since this functionality (selector context) is actually implemented using find. There's a similar example in the docs:

$('span', this) is equivalent to $(this).find('span').

Matthew Flaschen