M
M
Max Developer2017-09-11 14:37:09
JavaScript
Max Developer, 2017-09-11 14:37:09

Output data from JSON to html?

the question is quite stupid, but still tell me? how to append the data received from json, for example, to some kind of div in the li tag. it turned out to receive and process the data, but adding the values ​​\u200b\u200bcorrectly does not work very well ..
for a general understanding, the code is here

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-09-11
@maximviktorovich777

$('#countries').append('<li><p>' + val + '</p></li>');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question