I can upload a picture of the problem if you need one, but I need the last item to look like the rest. I read an rss feed and grab the first title, then populate it in the list. I try to format it like the rest, but it is not working. Here is my function:
<script type="text/javascript">
jQuery(function() {
jQuery.getFeed({
url: 'xml/rss-21.xml',
success: function(feed) {
var html = '';
for(var i = 0; i < 1; i++) {
var item = feed.items[i];
html += '<li data-theme="c">'
+ '<a href="#page1" data-transition="slide">'
+ item.link
+ '">'
+ item.title
+ '</a>'
+ '</li>';
}
jQuery('#result').append(html);
}
});
});
</script>
I need it to formatted like:
<li data-theme="c">
<a href="http://www.tristateis.com" data-transition="slide">
Win a Free Digital Pocket Memo
</a>
</li>
Thank you for your help.