jquery targeting next ID -


i have table colspan i'd add class jquery:

<td colspan="3" id="colspan-123">

and tried with:

$(this).closest(\'#colspan-123\').next(\'#colspan-123\').toggleclass("row-notop");

but that's not working. doing wrong?

i 1 of upvotes "ids must unique". must!

however use selector , add class:

$("td[colspan=3]").addclass("row-notop"); 

Comments

Popular posts from this blog

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -

javascript - three.js lot of meshes optimization -