JSFiddle - React, Tailwind, and code Playground

by Lakshmana Kumar C

HTML

<script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.3/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.3/css/jquery.dataTables.css">
<div>
    Actually i get the tbody content or data from db. Here i just put it in tbody. See function GetAllEmployeeList(); i get data from db and fill in table using datatable.
</br>
        <a href="javascript:" id="AEmployeeAdvanceSearch">
            <img src="images/icons/verify.png" alt="" id="btnSearch" title="Employee Search " />
            Advance Search </a>
    
        <div id="DEmployeeSearch">
            <table id="tblEmployeeSearch" class="tableStyle" cellpadding="0" cellspacing="0" width="100%" align="center" border="1">
                <thead>
                    <tr class="tab_head">
                        <th>
                            Employee ID
                        </th>
                        <th>
                            Employee Name
                        </th>
                        <th>
                            DID
                        </th>
                        <th>
                            Department
                        </th>
                        <th>
                            Designation
                        </th>
                    </tr>
                </thead>
                <tbody role="alert" aria-live="polite" aria-relevant="all" style="">
                        <tr class="odd">
                            <td class="">
                                1
                            </td>
                            <td class="">
                                T.Nandha Kumar
                            </td>
                            <td class=" sorting_1">
                                1
                            </td>
                            <td class="">
                                Management
                            </td>
                            <td...

CSS

/*!
 * jQuery UI CSS Framework 1.8.24
 *
 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Theming/API
 */

/* Layout helpers
----------------------------------*/
.ui-helper-hidden {
    display: none;
}

.ui-helper-hidden-accessible {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px,1px,1px,1px);
}

.ui-helper-reset {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    line-height: 1.3;
    text-decoration: none;
    font-size: 100%;
    list-style: none;
}

.ui-helper-clearfix:before, .ui-helper-clearfix:after {
    content: "";
    display: table;
}

.ui-helper-clearfix:after {
    clear: both;
}

.ui-helper-clearfix {
    zoom: 1;
}

.ui-helper-zfix {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    opacity: 0;
    filter: Alpha(Opacity=0);
}

/* Interaction Cues
----------------------------------*/
.ui-state-disabled {
    cursor: default !important;
}

/* Icons
----------------------------------*/

/* states and images */
.ui-icon {
    display: block;
    text-indent: -99999px;
    overflow: hidden;
    background-repeat: no-repeat;
}

/* Misc visuals
----------------------------------*/

/* Overlays */
.ui-widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*!
 * jQuery UI CSS Framework 1.8.24
 *
 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Theming/API
 *
 * To view and modify this theme, visit...

JavaScript

$(document).ready(function() {
            $('#DEmployeeSearch').hide();
            GetAllEmployeeList();
            
            $('#AEmployeeAdvanceSearch').click(function() {
                $('#DEmployeeSearch').dialog({
                    modal: true,
                    resizable: false,
                    width: "80%"
                });
            });
            
        });

        function GetAllEmployeeList() {
            $.post("MvcLayer/Promotion/GetPromotion", {},
                function(data) {
                            $('#tblEmployeeSearch').dataTable({
                                "aaData": data.table,
                                "sScrollY": "200px",
                                "bPaginate": false,
                                "bDestroy": true
                            });
                            $('#tblEmployeeSearch_filter').show();
                }, 'json');
        }