Let\'s say I have an object which looks like that:
var users = [\'user1\', \'user2\'];
For this object I would like to create a list of span li
This would work:
var users = ['user1', 'user2']; $.each(users, function() { $("", { text : this }).appendTo("body"); });