开发者

how to select all td apart of last child using jQuery

Im trying to figure out code that will allow me wrap content inside td apart from last child

What I have here does not work.

$('.ResultsRow2 td:not(last-child)').wrapInner('<div style="padding-top:4px"></div>')

Could you please advice me how to select all columns apart of the last one?

开发者_开发知识库

Thank you in advance!


Your last-child selector needs a colon in front of it.

$('.ResultsRow2 td:not(:last-child)')...
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜