is a row selected
is a row selected
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
Answers
http://live.datatables.net/liheyori/1/edit
or
http://live.datatables.net/siracilo/3/edit
This is shorter:
http://live.datatables.net/toxojiwo/1/edit
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:
http://live.datatables.net/toxojiwo/2/edit