One search bar for multiple tables with new API

One search bar for multiple tables with new API

NinjaPenguinSLCNinjaPenguinSLC Posts: 3Questions: 2Answers: 1

I have one common table creator that changes every page throughout my site that has a table on it. The function I use is:

$(document).ready(function() {
        $('table.display').DataTable({
            "scrollY":          "400px",
            "scrollCollape":    true,
            "paging":           false,
            "sDom":             '<"toolbar"f><"top">rti<"bottom"lp><"clear">'
        });
});

I just can't figure out how to make it so that there's only ONE filter on each page that will search each table. I've seen how to do it for individual tables, but I only have one function that creates every table at once. Anybody have any pointers to what I can add into there to make my tables have a universal search option? Thanks!

This discussion has been closed.