i have an array:
arr = ['a', 'b', 'c', ... ]
i want it to be:
<div>
<ul>
<li>a
<li>b
<li>c
...
</ul>
</div>
so i'm trying:
$('div').append('<ul>');
$.each(arr, function () {
$('div').append('<li>' + this);
});
$('div').append('</ul>');
but doesn't seem working... how can i queue this?