Data table options

# DataTable Link
# Data Table Options
# Modify Data table data show option
# Modify Datatable Page Show Value
<script type=”text/javascript” src=”//cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js“></script>
<script type=”text/javascript”>
$(document).ready(function(){
$(‘#table_id’).DataTable({
  lengthMenu: [ [50, 100, 200, -1], [50, 100, 200, “All”] ],
  pageLength: 50,
  order: [[ 1, ‘asc’ ]]
});
});
</script>

Leave a Comment