A checkbox was added to all tables in a form. They would like to read the data from other fields in the row when the checkbox is checked. There are 2 issues here. One is that the syntax I found online below is not working forms. It doesn't evaluate to true when the checkbox is checked even if I cycle through every single possible line of every single possible table looking for a checked box.
The other issue is that instead of checking every single line of every table for a checked box, can I just read the data from the fields in the row when they check the box?
$('.cf-table-block tbody tr').each(function () { if ($(this).find('.myCheckBoxClass').checked) {alert('Hello World');} });
I never get a message saying Hello World, even when I have boxes checked within the tables.