title: Getting all the filtered data from a non-ajaxified datatable
body: <p>I've used datatables to list all users in my application. I've to add an ability for admin to perform "Delete" operation on filtered data in datatable. For example, typing "R" in search box of datatable lists all the possible data which conains letter "R". Now on clicking a button "Delete" would delete all those users. I've implemented this logic but it only takes data from the first page:</p>
  
  <pre><code> $("#delete-users").click(function(){
          var status = confirm("All the users currently showing in the table will be deleted. Do you want to continue?");
          if(status){
              var users = new Array();
              $("table#users tbody tr").each(function() {
                  users.push(this.id);
              });
  
              $.ajax({
                  type: "POST",
                  url: "/users/delete_selected",
                  data: {
                      users: users
                  }
              })
              .always(function() {
                  window.location.reload();
              });
          }
      });
  </code></pre>
  
  <p>But I want to delete every data in the filtered set. Please help! Thanks.</p>