I'm using simple rss feed parser example from this topic = Rss Parser Example.
$.get('https://stackoverflow.com/feeds/question/10943544', function (data) {
$(data).find("entry").each(function () { // or "item" or whatever suits your feed
var el = $(this);
console.log("------------------------");
console.log("title : " + el.find("title").text());
console.log("author : " + el.find("author").text());
console.log("description: " + el.find("description").text());
});
});
Its perfect, however I want to show each output log in a specific div, eg:
title log goes in to a <div class="Rss-Title"></div>
and so on. So at the end I should have something like this:
<div id="Rss">
<div class="Rss-Title"></div>
<div class="Rss-Author"></div>
<div class="Rss-Description"></div>
</div>
My question: whats a proper way to do something like that?