1. Code
  2. Web Development

Quick Tip: Display Elements Sequentially with jQuery

Read Time:1 minLanguages:

In this video quick tip, I'll teach you how to add a bit of flair to your page, by displaying a set of elements sequentially. While there are numerous ways to accomplish this task, today, we'll review one technique that uses recursive functions.


What makes this usage effective is the fact that, when lis.eq(i) refers to an element that doesn't exist in the wrapped set, an empty jQuery object will be returned. When this happens, the subsequent methods in the chain (fadeIn) will never be called.

Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.