"Normal" onClick events are added inline to anchor tags, and won't work with TR/TD. But that's OK, because inline onClick is considered bad practice these days.
What you'll want to do is use jQuery to bind a click event using either .click(), .delegate(), or .live(), probably as part of a function called by a callback such as fnInitComplete.
Yup, as Greg says, avoid DOM0 methods, and use either DOM2 or just use jQuery events:
[code]
$('#example_table td').click( function () {
....
} );
[/code]
will do it.
See examples here:
http://datatables.net/release-datatables/examples/advanced_init/events_pre_init.html
http://datatables.net/release-datatables/examples/advanced_init/events_live.html
Replies
What you'll want to do is use jQuery to bind a click event using either .click(), .delegate(), or .live(), probably as part of a function called by a callback such as fnInitComplete.
[code]
$('#example_table td').click( function () {
....
} );
[/code]
will do it.
See examples here:
http://datatables.net/release-datatables/examples/advanced_init/events_pre_init.html
http://datatables.net/release-datatables/examples/advanced_init/events_live.html
Allan