Answer the question
In order to leave comments, you need to log in
[[+content_image]]
Why does it output [[object Object]?
$.getJSON( "http://2hd.com.ua/api/v1/orders/1", function( data ) {
var items = [];
$.each( data, function( key, val ) {
items.push( "<li id='" + key + "'>" + val + "</li>" );
});
$( "<ul/>", {
"class": "my-new-list",
html: items.join( "" )
}).appendTo( "body" );
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question