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
Post a Comment