Changing DOM Element Position of searchbox in datatables

前端 未结 8 1982
春和景丽
春和景丽 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:17

    Yes you can make a class in your css like:

    .pull-left{
        float: left !important;
    }
    

    and then add this class to datatable search div using jquery or javascript.

    example:

    $('.dataTables_filter').addClass('pull-left');
    

    make sure your script is in the head part of your html.

提交回复
热议问题