Jquery Datatable search box align left

backbone.js, datatables, jquery

Solution

You can use something like

jQuery(document).ready(function($) {
    $(tableSelector).DataTable({
        "dom": '<"pull-left"f><"pull-right"l>tip'
    });
});

with

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

The result is this: (Note that Twitter Bootsrap is used on the screenshot, for additional table styling)

More on DataTables DOM Manipulation can be found here.

Problem

I am using backbone and jQuery datatable. By default search box of datatable comes on right side - I want to align it to the left. Below is my code: ``` onDomRefresh: function(){ $(this.el).find('table').dataTable({ "dom": '<"top"i>rt<"bottom"flp><"clear">',"bLengthChange": false }); } ``` But it's not working.

Original source