Conditionally check all checkboxes

Conditionally check all checkboxes

elshammelshamm Posts: 4Questions: 0Answers: 0
edited February 2013 in General
I have a check all checkboxes button that uses: $('input', oTable.fnGetNodes()).attr('checked','checked');

However, how can I conditionally check a checkbox depending on certain values in the datatable? So I am looping through the table and based on a flag I would like to only check the checkbox if it meets this criteria. This is partial loop code.

for(i=0; i
This discussion has been closed.