I want to run one single .append() after my .each() for efficiency. I tried to build out my set of objects and it won't run. It's similar to this question, except I'm building a jQuery object instead of a string.
JQuery append to select with an array
HTML
<select></select>
jQuery
var items = ['apple','pear','taco','orange'],
options = '';
jQuery.each(items, function(i, fruit){
options += jQuery('<option/>', {
value: fruit,
text: fruit
});
}); //added missing ');'
jQuery('select').append(options);