开发者

Jquery - Using $(this) with multiple selectors? [duplicate]

This question already has an answer here: Closed 11 years ago.

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());
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜