This supposed to be really easy but for some reason I cannot find an answer for it online.. I have an array that I receive after AJAX request and I want to populate its content a simple dropdown box. So let's say that's my array:
var workers = ["Steve", "Nancy", "Dave"];
And I have a simple dropdown box which I want to populate dynamically depending what I'll get from an AJAX call:
<div id='dropdown'>
<select>
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
</div>
How can I do it properly? Thanks a lot!!