Naming a table when using use strict
Naming a table when using use strict
Hello
I am using a plugin that requires [code] 'use strict'; [/code].
So, when I try to
[code]
oTable = $('#example').dataTable({})
[/code]
I get an error that oTable is not defined . Of course, the error goes out when I comment out use strict.
On the other hand I need to
[code]
oTable.fnReloadAjax();
[/code]
bind on a click event. Please, give me some directions
I am using a plugin that requires [code] 'use strict'; [/code].
So, when I try to
[code]
oTable = $('#example').dataTable({})
[/code]
I get an error that oTable is not defined . Of course, the error goes out when I comment out use strict.
On the other hand I need to
[code]
oTable.fnReloadAjax();
[/code]
bind on a click event. Please, give me some directions
This discussion has been closed.
Replies
var oTable = $('#example').dataTable({})
?