User selectable rows example outdated
User selectable rows example outdated
For 1.7+ version of jQuery the use of the "live" function is depricated and instead should use the "on" function so the example code should be:
[code]
/* Click event handler */
$(document).on('click', '#example tbody tr', function () {
[/code]
instead of
[code]
/* Click event handler */
$('#example tbody tr').live('click', function () {
[/code]
Affected page: http://www.datatables.net/release-datatables/examples/server_side/select_rows.html
Regards Edwin
[code]
/* Click event handler */
$(document).on('click', '#example tbody tr', function () {
[/code]
instead of
[code]
/* Click event handler */
$('#example tbody tr').live('click', function () {
[/code]
Affected page: http://www.datatables.net/release-datatables/examples/server_side/select_rows.html
Regards Edwin
This discussion has been closed.