how get current value of checkbox? (part 2)

how get current value of checkbox? (part 2)

KamoAKamoA Posts: 19Questions: 6Answers: 0

In my other question https://datatables.net/forums/discussion/59165/how-get-current-value-of-checkbox#latest
I have 2 columns with check boxes.
How can I set new checkbox value in a cell data?
I like to see this data later in
table.cell('.selected',2).data().
Is it possible?
In simple words I have table with 2 columns of check boxes. User makes his choices, selecting row and pressing 'go' button.
I like to know user's selection.
Thank you,

Answers

  • kthorngrenkthorngren Posts: 21,166Questions: 26Answers: 4,921

    You wouldn't use cell().data() for this as the Datatables data cache is not updated when checking ot unchecking a checkbox. As mentioned in your other thread you would use Javascript or jQuery to get the checkboxes. Stack Overflow should be able to help with that. Maybe this thread will help get you started. If not please post a test case showing what you are trying so we can help. You can update the one from the other thread.

    Kevin

This discussion has been closed.