I’m trying to add ‘li’ tags to objects I am pulling through a database, right now the results appear as unsorted ‘item1 item2 item3 item3’ with this code:
var XML = new Array();
XML = xmlHttpRequest.responseXML;
alert($(XML).find('ItemName').text());
Any advice would be appreciated, thanks
Imagine each ItemName is an object. Each of those objects can be iterated through using the same methods you are using above
Edit – Edited to reflect needs of OP.