- $(function ()
- {
- $("#tblEmp").dataTable(
- {
- aoColumnDefs: [
- {
- bSortable: false,
- aTargets: [-1] // Removes sorting option for last column.
- }]
- });
- });
aTargets: [1] // Starts from left side(First column).
Use the below script to avoid the column sorting option in data table(bootstrap)