mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-27 00:54:15 +01:00
Update examples/api/multi_filter.html
minor improvement: calculate index based on the element's parent th. this is better because it allows to have some columns that are not searchable (like when the first row is a checkbox row)
This commit is contained in:
parent
823e64cccb
commit
f78ce70580
@ -22,8 +22,8 @@
|
||||
} );
|
||||
|
||||
$("tfoot input").keyup( function () {
|
||||
/* Filter on the column (the index) of this element */
|
||||
oTable.fnFilter( this.value, $("tfoot input").index(this) );
|
||||
/* Filter on the column based on the index of this element's parent <th> */
|
||||
oTable.fnFilter( this.value, $("tfoot th").index($(this).parent()) );
|
||||
} );
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user