Change tfoot position
Change tfoot position
Hi there,
First point: great job guys!!!
Second point: I'm using DataTable and I need a specific search for each column. Nothing simpler!
I added a code found here on the bottom of jquery's document.ready, so...
[code]$(document).ready(function() {
[...]
$(document).on('keyup', 'tfoot input', function () {
/* Filter on the column (the index) of this element */
oTable.fnFilter( this.value, $("tfoot input").index(this) );
});
});
[/code]
i also added the tfoot with input fields where needed...
[code]
[/code]
It is displayed correctly but it's on the bottom of the table and i need it on the top, before the thead.
Is it possible?
Any help is welcome!
Rick
First point: great job guys!!!
Second point: I'm using DataTable and I need a specific search for each column. Nothing simpler!
I added a code found here on the bottom of jquery's document.ready, so...
[code]$(document).ready(function() {
[...]
$(document).on('keyup', 'tfoot input', function () {
/* Filter on the column (the index) of this element */
oTable.fnFilter( this.value, $("tfoot input").index(this) );
});
});
[/code]
i also added the tfoot with input fields where needed...
[code]
[/code]
It is displayed correctly but it's on the bottom of the table and i need it on the top, before the thead.
Is it possible?
Any help is welcome!
Rick
This discussion has been closed.
Replies
So you could do something like in my example and position your inputs as needed. Or you could put them in the thead before your actual titles (make them TD elements), or put them anywhere else you want :-)
Allan
Thank you for the help :)
R.