开发者

in jquery, how to select current element's first child?

$(this) //this refer 开发者_开发问答to the elem

how to get the first child of 'this'?


$(this).children().eq(0)

or

$(this).children(':first')

or

$(this).children(':eq(0)')

or simply without jQuery:

this.firstChild
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜