cell contain selecting

cell contain selecting

juju24juju24 Posts: 6Questions: 2Answers: 0

hello i have a datatable in my page and i add selecting for one row a somme button to view all the data row
but i have a problem i use these code

var table = $('#users').DataTable(); function buttonaction(){ var t=table.cell('.selected', 0).data(); alert(t); }

i buttonaction function don't give the right id all time .i thing the page need to be refresh after cliking and before my function call .how can i solve it .Any update are welcome.

This discussion has been closed.