trying to get cell content with mRender

trying to get cell content with mRender

bryands1bryands1 Posts: 3Questions: 2Answers: 0

Hello
I am trying to have a button on a row in a table launch a function to do something and it needs information from the row to perform it's task. I am using mRender for this and I think I have the button part working but cannot seem to get the information on the row when the button is pressed. This is how I have it set up:

var table2 = $('#floortable').DataTable({
"bPaginate": true,
"bSearchable": false,
"bInfo": false,
"bFilter": false,
"stateSave": true,
"stateDuration": 10,
"aoColumnDefs": [{
"aTargets": [7],
"mRender": function (data, type, full) {
return '<input class="button" type="button" onclick="alert(full[3])">button</input> ';
}
}]

thanks for any help....

jsfiddle also at :
http://jsfiddle.net/bryands1/pJdaN/3/

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.