Possible Duplicate:
Jquery multiple selectors with this
Is it possible to use multiple selectors with $(this)? I tried:
$('#helper')开发者_如何学Go.click(function() {
$(this + " #divname").html());
});
But it never works. I just want to make sure its selecting the div within the div that was clicked on.
if you are trying to look for a child of this
you can do it like
$('#helper').click(function() {
$(" #divname",this ).html());
});
精彩评论