I'm having trouble reading JSON files for inclusion in the drop-down list.
JSON:
{
"BD": "Bangladesh",
"BE": "Belgium",
"BF": "Burkina Faso",
"BG": "Bulgaria",
"BA": "Bosnia and Herzegovina"
}
I want to put values into the dropdownlist as follows: Example:
<select name="optCountry" id="opt_country">
<option value="BD">Bangladesh</option>
<option value="BE">Belgium</option>
<option value="BF">Burkina Faso</option>
<option value="BG">Bulgaria</option>
<option value="BH">Bosnia and Herzegovina</option>
</select>