Ver originalvar h=document.getElementById("h1");for(var hi=0; hi<state.length; hi++) h.innerHTML+='<option value="'+state[hi]+'">'+state[hi]+'</option>";