datatables jquery click event not working after pagination
<p>I am using <a href="http://datatables.net/" rel="noreferrer">http://datatables.net/</a></p>

<pre><code>&lt;button class='btn btn-success activeAccount'&gt;Activate Account&lt;/button&gt;
</code></pre>

<p>I trigger ajax call on onclick event, below is ajax call code:</p>

<pre><code>$(".activeAccount").click(function() {
  var intCounselorId = $(this).parent().parent().find('input[class="counselorId"]').attr("value");
  var intOwnerId = $(this).parent().parent().find('input[class="userID"]').attr("value");
  var strAction = 'activateAccount';
  performAction(intCounselorId, intOwnerId, strAction);
});

function performAction(intCounselorId, intOwnerId, strAction) {
  $.ajax({
      url: '/admin/counselormanagement/expertmanagementgridaction',
      data: 'intCounselorId='+intCounselorId+'&amp;intOwnerId='+intOwnerId+'&amp;strAction='+strAction,
      type: "POST",
      async:false,
      success: function(intFlag) {
        if(intFlag == 1){
          location.reload();
        }
      }
  });
}
</code></pre>

<p>I'm trying to run an onclick event which works normally on page one, but as soon as I go to page 2 (or any other) it stops working.</p>

<p>I'm using jquery-1.10.2.min.js and 1.9.4 version of datatable</p>