Quantcast
Channel: reformating an RSS feed with jQuery - Stack Overflow
Browsing index pages (3 articles)

reformating an RSS feed with jQuery

I am currently pulling an RSS feed in which the the format is essentially title->image->text content. I would like to reformat it so that the image comes first. I am currently trying: <script...

View Article


Answer by krtek for reformating an RSS feed with jQuery

Try this code : $("li.rssitem").each(function() { var target = $(this).children("h3"); $(this).find("img").each(function() { $(this).remove(); $(target).before($(this)); }); }); I didn't tested it, so...

View Article


Answer by McHerbie for reformating an RSS feed with jQuery

The issue is the selector that is inside of the loop. It's finding all of the img tags, and not just the one inside of the desired li.rssitem. <script type="text/javascript">...

View Article
Browsing index pages (3 articles)


Latest Images