Populate dropdown using static JSON file

193 views
Skip to first unread message

Saavi

unread,
Sep 16, 2015, 9:45:05 PM9/16/15
to Semantic UI
Hi Everyone,

I am pretty new to semantic-ui and jQuery.  I am trying to display contents of my static JSON file into dropdown list but can't work out how to do that.

My JSON file looks like this

[
    {
        "name": "Pink",
        "value": "#FF69B4"
    },
    {
        "name": "Blue",
        "value": "#1B66F2"
    },
{
        "name": "Green",
        "value": "#07BA16"
    }
]

In the "Remote Settings"  there is a setting called "Fields"  but I am not sure how to use that.

Any ideas?

Thanks
Reply all
Reply to author
Forward
0 new messages