html - Selecting all sibling tds on right of the clicked Td using jquery -
the target assign class tds on right side of selected td in html table (using jquery).
for illustration if there total 5 columns (td) , 2nd td selected, column 3,4,5 should assigned specific class. next code has been tried assigns class immidiate right td , not proceeding ones..
$(this).parent('td').addclass("checkmark"); $(this).parent('td').next('td').addclass("green"); any help appreciated. kind regards,
try below code :
$(this).parent('td').nextall().addclass("green"); jquery html css
No comments:
Post a Comment