title: Ajax Pagination for ajax loaded data in cakephp 3.4
body: <p>I am using CAKEPHP 3.4. Ajax pagination is working fine for first loaded data. then I am using ajax filter to filter list which is working fine. When I am clicking page 2 on ajax loaded pagination it is loading all the previous data before filtering. This is the following code  which I have used for pagination.</p>
  
  <pre><code>$(".pagination a").bind("click", function (event) {
  if(!$(this).attr('href'))
    return false;
  $.ajax({
    dataType:"html", 
    evalScripts:true,
    data:'state=1&amp;category=6',
    success:function (data, textStatus) {$("#searchResult").html(data);}, 
    url:$(this).attr('href')
  });
  return false;
  </code></pre>
  
  <p>});</p>