TableTools error with jQuery 1.9.0: .live() is deprecated
TableTools error with jQuery 1.9.0: .live() is deprecated
dnagirl
Posts: 36Questions: 2Answers: 0
jQuery 1.9.0 is no longer supporting the .live() method. It should be replaced with the .on() method. Currently TableTools 2.1.4 throws the following error with jQuery 1.9.0:
[code]
$("tr", dt.nTBody).live is not a function
TableTools.js line 1027
[/code]
Editing that line to read [code]$('tr', dt.nTBody).on( 'click', function(e) {[/code] fixes the error.
[code]
$("tr", dt.nTBody).live is not a function
TableTools.js line 1027
[/code]
Editing that line to read [code]$('tr', dt.nTBody).on( 'click', function(e) {[/code] fixes the error.
This discussion has been closed.
Replies
Allan
[code] $(dt.nTBody).on( 'click', 'tr', function(e) { [/code]
[code]
$(dt.nTBody).on( 'click.DTTT_Select', 'tr', function(e) {
[/code]
This is available in the TableTools nightly.
Allan
Allan