Adding String to this in jQuery

Posted by Phonethics on Stack Overflow See other posts from Stack Overflow or by Phonethics
Published on 2010-05-02T18:02:02Z Indexed on 2010/05/02 18:07 UTC
Read the original article Hit count: 124

Filed under:

If this is an HTMLDivElement, how do I avoid doing this ?

$('#' + $(this).id + " > p").foo();

to do something like :

($(this) + $( " > p")).foo();

© Stack Overflow or respective owner

Related posts about jQuery