get value of a hidden cell

get value of a hidden cell

tumbero_xtumbero_x Posts: 63Questions: 0Answers: 0
edited March 2012 in General
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

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Use fnGetData to get the data for all columns in a row regardless of column visibility.

    Allan
  • tumbero_xtumbero_x Posts: 63Questions: 0Answers: 0
    I look perfect now thank you very much
  • tumbero_xtumbero_x Posts: 63Questions: 0Answers: 0
    edited March 2012
    probe with what Alan told me I still can not fix someone could indicate me where I am mistaken?

    [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
This discussion has been closed.