Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

options select from array

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #options #select #array
ADD COMMENT
Topic
Name
9+5 =