Quick Tip: Display Elements Sequentially with jQuery

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.

Tags:

Comments

Related Articles