JSFiddle - React, Tailwind, and code Playground
by hicurin
HTML
<div id="test"></div>
<input type="text" id="txt"/>
JavaScript
var data = [ {"user_id":"113","employe_first_name":"Asaladauangkitamakan","employe_last_name":"Nasibb"}, {"user_id":"105","employe_first_name":"Ryan","employe_last_name":"Friday"}, {"user_id":"87","employe_first_name":"hendi","employe_last_name":"kenther"} ];
var select = document.createElement("select");
for(var i = 0; i < data.length; i++){
var option = document.createElement("option");
option.value = data[i].user_id;
option.innerHTML = data[i].employe_first_name;
select.appendChild(option);
}
document.getElementById("test").appendChild(select);
select.onchange = function(){
document.getElementById("txt").value = this.childNodes[this.selectedIndex].innerText;
};