Selecting the first “n” items with jQuery October 10, 2022 by Tarik You probably want to read up on slice. Your code will look something like this: $("a").slice(0,20)