I’m not sure about your goal, you want “one” filter to filter over many tables? Input filter should be present above the first one then?
First you can “only” add the filter form if you are in the first table:
<pre>
if (t == 0 && element.attributes[‘class’] && …) { … }
(at the end of the javascript file)
Then in the filterTable(input, element); part, reloop over all tables to add each to the onkeyup event.
Something like:
<pre>
It’s just one way to do it, simple. You tell me if it’s good.
+0
New discussion
Answer