views:

437

answers:

4

i am using this but i want to remove the search bar and footer (showning) how many rows there are visible. I basically just want to use this plugin for sorting.

http://www.datatables.net/examples/

A: 

A quick and dirty way is to find out the class of the footer and hide it using jQuery or CSS:

$(".dataTables_info").hide();
kgiannakakis
static hiding with jquery isnt realy good
antpaw
+2  A: 
.dataTables_filter, .dataTables_info {display: none;}

that would be an option

antpaw
ive found a much better way to achieve this $('table').dataTable({"bFilter": false,"bInfo": false});
antpaw
A: 

You could hide them via css:

#example_info, #example_filter{display: none}
graphicdivine
wrong selectors
antpaw
Not 'wrong', merely different. It depends on whether you want to hide all instances (by class, as in your answer), or a particular instance (by ID, as in mine).
graphicdivine
A: 

if you are using themeroller:

.dataTables_wrapper .fg-toolbar { display: none; }
paja01