JSFiddle - React, Tailwind, and code Playground

by Nick Hulea

JavaScript

function AddOptions(objSelect) {
    var URL = "~/LoadCountryList.ashx";
    $.getJSON(URL, function (countries) {
        $.each(countries, function () {
            var vCountry = this['Country'];
            $(objSelect).append($("<option></option>").val(this['ID']).html(vCountry));
        });
    });
}