Skip to content

Populate select filter column with Ajax #1010

@likedo

Description

@likedo

Hi, thanks for the support.
I get the test JSON with Ajax and return it:

filter_selectSource : {
    2:function(table, column, onlyAvail){
        return $.getJSON("../admin/callbacks/getSelectFilterSearch.php",function(data){
            return data.hasOwnProperty('options') ? data.options : false;
        });
    }
}

The JSON is: {"options":["a","b","c"]}

How do you fill the select with the json?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions