Accessing variables w/in complete function
<pre><code>for (var i = 0; i &lt; 32; i++) {
    var thisId = dropId+i;
    $("#p"+thisId).animate({ left:"+=32px" }, function(){
        if ($("#p"+thisId).position().left == 1024) {
            $("#p"+thisId).remove();
            window.console.log("removed");
        }
    });
}
</code></pre>

<p>In the above code example, by the time I get around to executing animate's complete function, <code>thisId</code> represents the last assigned value from the for loop NOT the value that I wanted to pass in for each iteration of the loop. Is there a way to get it to access the correct <code>thisId</code>?</p>
