Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

Clicking on column toggles boolean value

$
0
0

Hello

I have a table currently with 5 columns one of which is a boolean value,
I was trying to implement a solution where the user clicks on the column
and that row column 5 would toggle from True to False or False to True

I could find a way to get the data but not update or set the data and have the table refresh with the correct data
eg.

var data = table.row('.selected').data();
alert(data[5]);

I found that if i set the data value manually with say table.row('.selected').data()[0][5] = "False"
then run table.draw() it does not update

What's the best way to do this?

Thanks


Viewing all articles
Browse latest Browse all 81728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>