Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="https://code.jquery.com/jquery-3.5.1.min.js"
- integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
- <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"
- integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30=" crossorigin="anonymous"></script>
- <script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script>
- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css">
- <title>dataTable</title>
- </head>
- <body>
- <script>
- $(document).ready(function () {
- $('#data-table').DataTable({
- "ajax":"example2.json"
- });
- });
- </script>
- <table id="data-table">
- <thead>
- <tr>
- <th>Name</th>
- <th>Position</th>
- <th>Address</th>
- <th>Zipcode</th>
- <th>Year</th>
- <th>Salary</th>
- </tr>
- </thead>
- </table>
- </body>
- </html>
Add Comment
Please, Sign In to add comment