fnGetData having trouble when passing in a Row
fnGetData having trouble when passing in a Row
[code]
console.log(_tableSB.$('tr.row_selected'));
console.log(_tableSB.fnGetData(_tableSB.$('tr.row_selected'))) ;
[/code]
I'm passing in a selected row and I could see the row being found by the first line. But when I run the code, I get this error:
[code]
Uncaught TypeError: Cannot call method 'toLowerCase' of undefined
[/code]
console.log(_tableSB.$('tr.row_selected'));
console.log(_tableSB.fnGetData(_tableSB.$('tr.row_selected'))) ;
[/code]
I'm passing in a selected row and I could see the row being found by the first line. But when I run the code, I get this error:
[code]
Uncaught TypeError: Cannot call method 'toLowerCase' of undefined
[/code]
This discussion has been closed.
Replies
console.log(_tableSB.fnGetData(_tableSB.$('tr.row_selected')[0])) ;
Since it was passing back an array and I needed the first one found.
Allan