Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<link rel="stylesheet" href="http://cdn.datatables.net/1.10.2/css/jquery.dataTables.min.css"/>
<script src="http://cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js"></script>
</head>
<table id="dtTable" ">
<thead>
<th>Col1</th>
<th>col2</th>
</thead>
<tbody>
<tr>
<td>11</td>
<td>12</td>
</tr>
</tbody>
</table>
<script id="jsbin-javascript">
$(document).ready(function() {
var table = $('#dtTable').dataTable();
// console.log(table);
} );
</script>
<script id="jsbin-source-javascript" type="text/javascript">$(document).ready(function() {
var table = $('#dtTable').dataTable();
// console.log(table);
} );</script></body>
</html>
$(document).ready(function() {
var table = $('#dtTable').dataTable();
// console.log(table);
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment