Advertisement
  1. Code
  2. Web Development
Code

Quick Tip: Display Elements Sequentially with jQuery

by
Difficulty:IntermediateLength:QuickLanguages:

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.


Conclusion

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.

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