var j = new Array("option1","option2","option3","option4","option5"), var options = ''; for (var i = 0; i < j.length; i++) { options += '<option value="' + j[i]+ '">' + j[i] + '</option>'; } $("#rec_mode").html(options);