get value of a hidden cell
get value of a hidden cell
hello friends
I'm trying to get the value of a hidden cell with 'bVisible': false
but I can not do
I'm doing it this way
[code] "fnDrawCallback": function() {
$("#example tbody tr td:nth-child(4)").click(function() {
var position = oTable.fnGetPosition($(this).parents("tr").find("td").eq(1).html());
var Id = oTable.fnGetData(position)[0];
alert(Id)
})
}[/code]
and the console gives me this error
Uncaught TypeError: Cannot call method 'toUpperCase' of undefined
Greetings and thanks for any help you can give me
I'm trying to get the value of a hidden cell with 'bVisible': false
but I can not do
I'm doing it this way
[code] "fnDrawCallback": function() {
$("#example tbody tr td:nth-child(4)").click(function() {
var position = oTable.fnGetPosition($(this).parents("tr").find("td").eq(1).html());
var Id = oTable.fnGetData(position)[0];
alert(Id)
})
}[/code]
and the console gives me this error
Uncaught TypeError: Cannot call method 'toUpperCase' of undefined
Greetings and thanks for any help you can give me
This discussion has been closed.
Replies
Allan
[code] oTable.$('tbody tr td:nth-child(4)').click( function () {
var sData = oTable.fnGetData( this );
alert( 'The cell clicked on had the value of '+sData );
} );[/code]
Greetings and thank you very much