JSFiddle - React, Tailwind, and code Playground
HTML
Example Dropdown:
<select id="ddcountry">
</select>
JavaScript
//var response = {"Table1":[1,"abc"],[2,"abc1"],[3,"abc2",null]};
$(function(){
//Valid Json Array
var response = [
{
"Country_name": "india1"
},
{
"Country_name": "india2"
},
{
"Country_name": "india3"
}
];
$.each(response, function (key, item) {
$('#ddcountry').append(
$("<option></option>")
.attr("value", item.Country_name)
.text(item.Country_name)
);
});
});
});