Changing DOM Element Position of searchbox in datatables

前端 未结 8 1971
春和景丽
春和景丽 2021-01-30 14:57

Actually I am new to jQuery datatables plugin.

I have attached the plugin to my tables using this method using this code.

$(document).ready(function() 
         


        
8条回答
  •  情深已故
    2021-01-30 15:30

    you can change the style of the search input very easy with css

    in css File:

    .dataTables_filter input {
         background: blue;
    }
    

    With Javascript

    $(".dataTables_filter input").css({ "background" :"blue" });
    

    Try it by paste this to your console.

提交回复
热议问题