Say I have a table with 3 columns, only the 1st and 3rd column of TDs have checkboxes. I have a button that says "SelectAllFirst" that puts a checkmark on all checkboxes in the first column only, the 3rd remains uncheked. How do I accomplish this?
I thought it would be something like this:
$("#mytable tr td:eq(0) input:[type=checkbox]").prop("checked", true);
(but that doesnt do anything. Removing the "eq(0)" results in all checkboxes including the 3rd column to be checked)