Wednesday, 4 January 2017

JQuery DataTable Sample Example

<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css"/>

<div>
<table id="regionTable" class="table table-hover table-striped table-bordered">
 <thead>
     <tr>
          <th>OrganizationId</th>
         <th>Parent OrganizationId</th>
         <th>Type</th>
          <th>Code</th>
         <th>Action</th>
     </tr>
 </thead>
 <tbody>
 
    <tr>
     <td>fhf</td>
     <td>fh</td>
     <td>fhf</td>
     <td>fh</td>
     <td><button class="edit" >Edit File</button>
      <a href="#"> <button class="remove" >Delete File</button></a></td>
   
    </tr>
   
   
 
 

 </tbody>
</table>
</div>


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