[Solved] Populate li elements with values from array
Try this : DEMO HERE HTML: <ul id=’menu’><li></li><li></li> </ul> jQuery: var array = [“one”, “two”]; $(‘ul#menu li’).append(function(index){ $(this).text(‘Number ‘+array[index]); }); 3 solved Populate li elements with values from array