Alert Cell value of my datatable
Alert Cell value of my datatable
hi everyone, im new in datatables component, and course in the forum, someone can tell me how can i get the value of one row selected.
i suppose once i get the alert value, i can send this value into input text.
i use this code but, is not really work..
[code]
var oTable = $('#example').dataTable();
$('#example tbody tr').click( function () {
var aData = oTable.fnGetData( this );
alert( aData[0] ); // assuming the id is in the first column
} );
[/code]
i wanna get this value to pass into input text.
thaks i hope somebody can help me
i suppose once i get the alert value, i can send this value into input text.
i use this code but, is not really work..
[code]
var oTable = $('#example').dataTable();
$('#example tbody tr').click( function () {
var aData = oTable.fnGetData( this );
alert( aData[0] ); // assuming the id is in the first column
} );
[/code]
i wanna get this value to pass into input text.
thaks i hope somebody can help me
This discussion has been closed.