The alert(i) onclick bind line is run on 3 divs, but all of them when clicked alert the last set value of i. I hope what I\'m trying to do makes s
alert(i)
i
$("#bmi-" + self.containerId + "-" + i).bind('click', (function(i) { return function() { alert(i); }; })(i));