I have a python file which return a json file.It contains only a list like this : [1,2,3,4,5,6,7,]
How to make this get populated in a select box in HTML page.
Code :
$.getJSON('data.json', function(data) {
destinations = data[]
$.each(destinations, function(id, destination) {
destination = destination[]
})
});
what as to be done?