Is it possible to add more drop down or other html elements to the Datatable after the default
Display "5" record
I want to add more drop down to my DataTable between the Default one and the Search Bar which is provided by default.
I have gone through sDom but I am not able to understand the syntax.
Thanks in advance.
You can insert an element
<div>
between the length menu and the filter box this way :'lfrtip'
is the defaultdom
string, so you basically just add an<div id="#add">
to the existing layout. It is adviceable to style#add
, especially setting thedisplay
type toinline-block
so it not break the elements down under :Now you can add
<select>
's (or whatever) to the#add
element the plain jQuery way :demo -> http://jsfiddle.net/ahqbf35w/