I have an array that I want to have displayed in html.. I don\'t want to write multiple lines for posting each item in the array but all should be exactly the same. ie
for (var i = 0; i < array.length; i++) { $(".element").append('' + array[i] + ''); }