datatables add class to filters

前端 未结 3 1877
北荒
北荒 2020-12-30 08:03

I am currently seeking a method to add an additional custom class to the jQuery datatables filters (Records per page and Search)

Th

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 08:08

    i'm use DataTable 1.10.2 and i use :

    $.extend( $.fn.dataTableExt.oStdClasses, {
        "sFilterInput": "form-control",
        "sLengthSelect": "form-control"
    });
    

    I go through the extend function instead of jquery.

提交回复
热议问题