title: JQuery .on('click') not working in DataTables 2nd page or rows past 11
body: <p>I have a jQuery link that runs on a dynamic list for each row when the hyperlink is clicked.</p>
  
  <p>This works before datatables is applied, but once datatables is applied the 11th row (after changing display to higher than the default 10) or when on another page, the jQuery is no longer called.</p>
  
  <p>I tried throwing this in a jsFiddle and it works there, so I can't reproduce it in a jsFiddle for some reason.</p>
  
  <p>Any pointers in the right direction would be very much appreciated.</p>
  
  <h2>PHP:</h2>
  
  <pre><code>echo "&lt;table id='paginatedTable'&gt;";
  echo "&lt;thead&gt;&lt;th&gt;Test1&lt;/th&gt;&lt;th&gt;Test2&lt;/th&gt;&lt;/thead&gt;&lt;tbody&gt;";
  foreach($array as $arr){
   echo "&lt;tr&gt;&lt;td&gt;" . $arr['test1'] . "&lt;/td&gt;&lt;td&gt;&lt;div class='test'&gt;";
   echo "&lt;a href='#' class='toggleTest' data-id='". $arr['id']."' id='test-" . $arr['id'] . "'&gt;" . $arr['test2'] . "&lt;/a&gt;";
   echo "&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;";
  }
  echo "&lt;/tbody&gt;&lt;/table&gt;";
  </code></pre>
  
  <h2>jQuery</h2>
  
  <pre><code>$(function(){
      $('.test').on('click', '.toggleTest', function(e){
          var id = $(this).data('id');
          $("#test-"+id).html("Done");
          return false;
      });
  });
  
  $(document).ready(function() {
      $('#paginatedTable').dataTable();
  } );
  </code></pre>