var data = ['foo', 'bar', 'foobar', 'moo', 'meow', 'xxx']; var list = $('ul'); $.each(data, function(i, value) { $('