Say I have a table with 3 columns, only the 1st and 3rd columns of TDs have checkboxes. I have a button that says โSelectAllFirstโ, which only selects the checkbox in the first column, the third one remains unskilled. How to do it?
I thought it would be something like this:
$("#mytable tr td:eq(0) input:[type=checkbox]").prop("checked", true);
(but it does nothing. Removing "eq (0)" causes all the checkboxes, including the third column to check)
source share