开发者

how to select all td apart of last child using jQuery

开发者 https://www.devze.com 2022-12-08 19:02 出处:网络
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.

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

精彩评论

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