I have a dataTable with it most basic initialization code. But, I need to assign a custom pagination css class to the pagination which appears at the bottom of the table (i want
You can use drawCallback option:
drawCallback
$(document).ready(function () { $('#myDataTable').DataTable({ ... "drawCallback": function () { $('.dataTables_paginate > .pagination').addClass('pagination-sm'); } }); });