JSFiddle - React, Tailwind, and code Playground

by TimothyV

HTML

<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css" />
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script>

<script type="text/javascript">
    $(document).ready(function () {
        var table = $('#example').DataTable({
        });
    });

    //https://datatables.net/manual/plug-ins/search
    $.fn.dataTable.ext.search.push(
        function (settings, data, dataIndex) {
            alert(data[1]);
            return true;
        }
    );
</script>

<table id="example" class="display" style="width:100%">
    <thead>
        <tr>
            <th>id</th>
            <th>checkbox</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <th>1</th>
            <th>@Html.CheckBox("checked", false)</th>
        </tr>
        <tr>
            <th>2</th>
            <th>@Html.CheckBox("checked", true)</th>
        </tr>
    </tbody>
</table>