[jQuery] specifying count for rss feed display with each function

[jQuery] specifying count for rss feed display with each function

<div>Sorry all Im still a newb to jquery. Ive been messing around with using jquery for grabbing and displaying rss feed info. A lot less code then using straight javascript. what Im not quite clear on is how you grab a specific count from doing an .each<BR><BR>For example if I grab a feed with the jquery code below</div> <div> </div> <div>// count for lines display<BR>var items_count = 10;</div> <div><BR>// feed location<BR>var feed = my.xml';</div> <div> <BR>// replace url for link<BR>var u = 'http://www.mypage.html?txtSearch='</div> <div> </div> <div>$(document).ready(function(){<BR>  $.get(feed, function(xml){<BR>          $("item", xml).each(function(){<BR>                 
$(this).find("item").each(function(){<BR>                          html += "";<BR>                  }).end().find("title").each(function(){<BR>                          html += "<a href='" + u + this.text + "'>" + this.text + "</a>
";<BR>                  }); <BR>          });</div> <div>          $("#feed").html(html).slideDown("slow");<BR>  <BR>  });<BR>});</div> <div> </div> <div>Using jquery how do I do a for each count
like:</div> <div>for(var i=0; i<items_count; i++) {</div>


<hr size=1>Access over 1 million songs - <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/">Yahoo! Music Unlimited.</a>_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/