Reputation: 971
I have my application loading and parsing my xml data with ajax, but I only want to return a specific number of values - starting with the first.
I feel like I should be able to specify what I want here:
$(xml).find("person").each(function()
I almost got what I needed by including .first():
$(xml).find("person").first().each(function()
But that only loads the first instance, whereas I need the first ten. Is it possible to do this?
Upvotes: 0
Views: 126