filter on multiple tables within tabs...is this possible?

filter on multiple tables within tabs...is this possible?

pg_lheltonpg_lhelton Posts: 8Questions: 0Answers: 0
edited June 2012 in General
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!
This discussion has been closed.