(In Javascript) I am doing a GET request inside typefunc() and getting result (variable res) in this format:-
[{"Name":"Button1","ID":"A1"}, {"Name":"Button2","ID":"A2"}, {"Name":"Button3","ID":"A3"}]
How do I populate the below mentioned drop-down using this data?
<select id="type" class="form-control" onchange="typefunc();" required>
<option selected>Choose...</option>
</select>