I need to get the values of a bunch of list items into an array.
This is what I'm trying at the moment:
var array = $('li').each(function () {
$(this).html();
};
You are almost done.
With little modification's,
var array =[];
$('li').each(function () {
array.push($(this).html());
});
You need to use push for adding values to your array
items.push($(this).html());
See your code on JSFiddle