Selecting First 10 Items of Specific Class Using jQuery
Here’s a very informative technique using jQuery to select the first 10 items of specific class. This tutorial was created by web developer Sam Deering, who is also the man behind jQuery4u. 1. First thing to do is get the first and last elements: var firstSpan = $(‘span.class:first’), lastSpan = $(‘span.class:last’); 2. Get all the [...]