Alert Cell value of my datatable

Alert Cell value of my datatable

TadeoTadeo Posts: 1Questions: 0Answers: 0
edited November 2010 in General
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
This discussion has been closed.