9
Guys, wanted to know how to make a "select" inside a JSON file using JS.
Example:
I have a table below using data coming from a JSON file, but I wanted to make a filter so when click search, it drop in the table the result.
Note: I don’t know much about JS frameworks, but if it’s easier, I don’t care.
For example use this JSON:
[
    {
        "id": "1",
        "nome": "Pedro",
        "console": "ps2",
        "preco": "200"
    },
    {
        "id": "2",
        "nome": "Val",
        "console": "ps1",
        "preco": "50"
    },
    {
        "id": "3",
        "nome": null,
        "console": "xbox",
        "preco": "2000"
    },
    {
        "id": "4",
        "nome": "Flavio",
        "console": "one",
        "preco": "1000"
    },
    {
        "id": "5",
        "nome": "Giovanna",
        "console": "xbox98",
        "preco": "300"
    },
    {
        "id": "6",
        "nome": "Luana",
        "console": "xbox",
        "preco": "200"
    },
    {
        "id": "7",
        "nome": "Pri",
        "console": "ps2",
        "preco": "100"
    }
]

http://jsbin.com/yakubixi/4/edit
– Thiago Friedman