Get started with TableDnD CDN

MIT licensed

TableDnD is a lightweight library for enhancing HTML tables with sorting, searching, and pagination features.

Tags:
  • TableDnD
  • drag
  • drop
  • table

Stable version

Copied!

How to start using TableDnD CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with TableDnD CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.2/css/bootstrap.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.cdnhub.io/TableDnD/1.0.5/jquery.tablednd.min.js"></script>
    <script>
        $(document).ready(function() {
            $('table.sortable').tableDnD();
        });
    </script>
</head>
<body>
    <div class="container mt-5">
        <table class="table table-bordered sortable">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Age</th>
                    <th>Country</th>
                </tr>
            </thead>
            <tbody id="sortableTable">
                <tr>
                    <td>John Doe</td>
                    <td>30</td>
                    <td>USA</td>
                </tr>
                <tr>
                    <td>Jane Doe</td>
                    <td>25</td>
                    <td>Canada</td>
                </tr>
                <tr>
                    <td>Bob Smith</td>
                    <td>45</td>
                    <td>UK</td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>
Copied!
Copied!

All versions