Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82450

Turn click events on and off

$
0
0

I want to disable all click events from my datatable.
I can do this with

var table = $('#example').DataTable();
$('#example').off('click');

But I can not enable the eventhandler later on.
This does not work.

$('#example').on('click');

Same with .bind() and .unbind()
What am I doing wrong?


Viewing all articles
Browse latest Browse all 82450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>