JSFiddle - React, Tailwind, and code Playground
HTML
<div class="test">kaka</div>
JavaScript
$(".test").append('<select name="test" id="test"></select>');
url = 'https://jsonplaceholder.typicode.com/users';
$.ajax({
url: url,
type: 'GET',
success: (response => {
var a;
for(i=0; i<response.length; i++){
console.log(response[i].name)
$("#test").append("<option value="+response[i].name+">"+response[i].name+"</option>")
}
})
})