I have a table and I use this code to add a <div class="out"></div> inside the second column cells:
$(".main-vervolg .right .bottom table tbody td:nth-child(2)").append('<div class="out"></div>');
This div go’s over the text inside the cells but I don’t want that the last cell of that column get’s that div inside it.
You can use the
:not()selector along with the:lastselector to achieve that:Demo