https: news.investforum.ru/feed/filter/full /? & channels = satellits There is json with news, there is an array of 20 objects, In each title, the preface (short text), the image to the article, and the article itself. I made it a small template. Each templeplayte has a Lern Mor button, by clicking the button you need to open the entire article either in a new page or in this + there is a comment field, how to do this? Please help.
$.getJSON(my_url, function(data) { for ( i in data ) { var newsbox = $("<div>", {class: 'news-item'}), link = $( "<a>", { class: "news-item-btn", text: 'Learn more', id: "" + i}), infobox = $("<div>", {class: "news-item-info"}); $(document).find('.blog').append(newsbox) newsbox.append('<div class="news-item-img"><img src=' + data[i].Image + ">"); infobox.append("<h3>" + data[i].Title); infobox.append("<div>" + data[i].Description); infobox.append(link); newsbox.append(infobox); } })