filter on multiple tables within tabs...is this possible?
filter on multiple tables within tabs...is this possible?
![pg_lhelton](https://secure.gravatar.com/avatar/c5882e379be3f958bcd57bd3c293c300/?default=https%3A%2F%2Fvanillicon.com%2Fc5882e379be3f958bcd57bd3c293c300_200.png&rating=g&size=120)
I have two separate divs, each with three tabs in it. there is a different datatable on each tab. Is it possible to have a different filter for each div that filters all of the tables in that div?
on another page i have with one data table the following code filters that table, but that code doesn't do anything on this table...please help.
[code]
// Filter table for typed entry
function filter(selector, query) {
query = $.trim(query);
query = query.replace(/ /gi, '|');
$(selector).each(
function() {
($(this).text().search(new RegExp(query, "i")) < 0) ? $(
this).hide().removeClass('visible') : $(this)
.show().addClass('visible');
});
}
[/code]
Thank you!
on another page i have with one data table the following code filters that table, but that code doesn't do anything on this table...please help.
[code]
// Filter table for typed entry
function filter(selector, query) {
query = $.trim(query);
query = query.replace(/ /gi, '|');
$(selector).each(
function() {
($(this).text().search(new RegExp(query, "i")) < 0) ? $(
this).hide().removeClass('visible') : $(this)
.show().addClass('visible');
});
}
[/code]
Thank you!
This discussion has been closed.