Is there a way to control the number of iterations .each() will do?
I like using $.each() however I can't control how many times it will run. Is there another method that works better?
I'm trying to get this code,
$.each(json, function(i,item){
// devHack, will be used along with linkbase to get to a specific link
link = "";
$('#sbItems').append('<li><a href="' + link + '">' + this.title + '</a></li>');
});
to display the first 10 items each time instead of displaying all the items all at once.