little confused, i have a .each function which displays all results from JSON when i use console.log but when i try to output using .html() it only shows one? any reason why?
code:
$(document).ready(function(){
$.get('functions/ListOrders.php', function(xml){
var newOrders = $.xml2json(xml);
$.each(newOrders.ListOrdersResult.Orders.Order, function(index, value) {
//console.log(value.AmazonOrderId);
$('#orderAmount').html("<b>Order Total:</b><br>" + index + "<br><br>");
$('#orderListing').html("<b>Order Listing:</b><br>" + value.AmazonOrderId);
});
});
});
Thanks
.html()with.append(). Fiddle with it from there.