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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -