I'm trying to disable click events on 'disabled' pagination buttons in Datatables.
I've been trying to do so like with this code
$('.dataTables_paginate span.ui-state-disabled').click(function(){return false;});
But that only works on the worded navigation (i.e., Next, Previous, First, Last) and not the numbering. I've tried targeting it a dozen different ways, to no avail. Is there something in the datatables API that I'm missing, or does anyone out there have another idea how to disable this? The disable class is applied dynamically through datatables.
If you have a minute, please help -- this is driving me crazy!