I know I have done this many times, but for some reason I can't get it to work now. I need to identify if a row is selected. The count is returning the incorrect value:
This question has an accepted answers - jump to answer
This is shorter:
The solution with the timeout has less counts because the deselect isn't logged when you click on a different row replacing the current row selection with a new one. Which basically is this event sequence: select (original select), deselect (when clicking on a different row the original select is cancelled, i.e. the row is deselected), select (new row selected replacing the original select).
No timeout means: You miss everything because the dt processing is slower than "click" event processing.
This one skips the deselect log in case you replace the existing select with a new one:
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.