php过滤多个表

I am typing to dynamically filter multiple tables using one select dropdown box.

I have the code here -> https://jsfiddle.net/fpa4k2Lc/

    var props = {
    sort: true,
    rows_counter_text: "Displayed rows: ",
    col_number_format: [null,null,'US','US','US','US','US','US','US'],
    display_all_text: " [ Show all ] ",
    status_bar_target_id: 'statusDiv',
    col_0: "multiple",
    col_1: "select",
    col_2: "checklist",
    col_4: "none",
    col_8: "none",
    external_flt_grid: true,
    external_flt_grid_ids: ['slcCountry','slcCode','slcYear','inpPop'],
    public_methods: true
}
setFilterGrid("demo","demo2",props);

but i can only get it to filter one of the tables and not both.