Return to Snippet

Revision: 17519
at September 8, 2009 09:47 by jamesming

Initial Code
<html xmlns="">
    <title>Loop through an array using jQuery</title>
    <script src=""    
    <script type="text/javascript">
        var arrNames = ['Tom', 'Jane', 'Harry', 'Rick', 'Moby'];

        $.each(arrNames, function(i, val) {
            setTimeout(function() {
                $('#divDisp').fadeOut("slow", function() {
            }, i * 3000);
<div id='divDisp'></div>

Initial URL

Initial Description

Initial Title
Loop and Animate Elements of an Array using jQuery

Initial Tags
array, jquery

Initial Language