title: How to trigger on click event when user clicks on pagination page numbers in datatables?
body: <p>I am using datatables in which I want to trigger an on click event with alert box when user clicks on the datatable pagination numbers.</p>
  
  <p>Below is the code I tried, but it works for next button.</p>
  
  <pre><code>$(document).ready(function (){
    var table = $('#example').DataTable({
      drawCallback: function(){
        $('.paginate_button.next', this.api().table().container())          
           .on('click', function(){
              alert('next') ;
           });       
      }
    });   
  });
  </code></pre>
  
  <p><a href="https://jsfiddle.net/ajbghfhh/" rel="nofollow noreferrer">Live Example</a></p>