JavaScript Answers

How to remove pagination in jQuery datatable with JavaScript?

Spread the love

To remove pagination in jQuery DataTables using JavaScript, we can set the paging option to false when initializing the DataTable.

For example we write:

<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Remove Pagination in jQuery DataTable</title>
  <link rel="stylesheet" type="text/css" href="">
  <script src=""></script>
  <script src=""></script>

  <table id="myTable">
        <td>John Doe</td>
        <td>Jane Smith</td>
      <!-- Add more rows as needed -->

    $(document).ready(function() {
        paging: false


In this example, the DataTable is initialized on the <table> element with the ID “myTable”, and the paging option is set to false.

As a result, pagination will be disabled, and all rows will be displayed on a single page.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *