<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>
<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>
VM467:1 Uncaught TypeError: $(...).DataTable is not a function
ReplyDeleteat HTMLDocument. (:1:48)
at j (VM414 jquery-1.11.3.min.js:2)
at Object.fireWith [as resolveWith] (VM414 jquery-1.11.3.min.js:2)
at ready (VM414 jquery-1.11.3.min.js:2)
Facing .DataTable is not a function error
Delete