Styling the Pagination Element with Bootstrap 4

Styling the Pagination Element with Bootstrap 4

MFGMFG Posts: 12Questions: 5Answers: 0

I am trying to apply the BS4 class "pagination-sm" to the pagination element as follows:

$('#dtPluginExample_paginate ul').addClass("pagination-sm");

This is the last line of the JS.

On the fIrst load of the page the element is rendered correctly (class added to the ul element).
After any subsequent event, the class I thought I was adding correctly disappears and the element reverts back to Bootstrap's normal size.

I suspect I am missing something very simple, but I am not seeing it.

Sample here: http://live.datatables.net/xiyoreni/1/edit
Click on any of the pagination buttons to see it revert back to normal size.

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.