Function within for loop
Function within for loop
http://jsfiddle.net/xNquz/12/
I'm trying to pass variables to the function using a loop, but I think the problem may be about closures? Apparently it's seeing the last variable in the for loop. Either way it doesn't work how I want. So what can I do to fix this?