Quantcast
Channel: Convert console.log to output to a div - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Ish for Convert console.log to output to a div

$
0
0

You should use .html() function

<div id="Rss"><div class="Rss-Title"></div><div class="Rss-Author"></div><div class="Rss-Description"></div></div>$.get('http://stackoverflow.com/feeds/question/10943544', function (data) { $(data).find("entry").each(function () { // or "item" or whatever suits your feed    var el = $(this);    $('#Rss-Title').html(el.find("title").text());    $('#Rss-Author').html(el.find("author").text());    $('#Rss-Description').html(el.find("description").text()); });});

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>