Comes json. And in the HTML markup, there are already 5 tags. It is necessary that each value be recorded in each tag in order. For example: <h1> ΠΠ΅Π½ΠΈΡ</h1> , <h1>ΠΠΈΠΊΠΎΠ»Π°ΠΉ</h1> ,<h1> ΠΠ»Π°Π΄ΠΈΡΠ»Π°Π²</h1> ,<h1> ΠΠ²Π³Π΅Π½ΠΈΠΉ</h1> , <h1>ΠΠ»Π΅ΠΊΡΠ°Π½Π΄Ρ</h1> .
I tried through apend () but for some reason I have the last element recorded in the tag's mustache.
$('h1').each(function(index, value){ var name = value[index].name; $(this).text(name); }); Here is json himself:
{ "1": { "name": "ΠΠ΅Π½ΠΈΡ" }, "2": { "name": "ΠΠΈΠΊΠΎΠ»Π°ΠΉ" }, "3": { "name": "ΠΠ»Π°Π΄ΠΈΡΠ»Π°Π²" }, "4": { "name": "ΠΠ²Π³Π΅Π½ΠΈΠΉ" }, "5": { "name": "ΠΠ»Π΅ΠΊΡΠ°Π½Π΄Ρ" } } How to syntactically spell such a crawl of elements?