$.each( [0,1,2,3,4], function(index, num) { $("#port"+num).click(function() { bigchart(num); }); });
Wait. What's the "index" in there for. I don't need that, do I? Seems to work fine without it. I'll assume that was a leftover from a previous idea.
$.each( [0,1,2,3,4], function(index, num) { $("#port"+num).click(function() { bigchart(num); }); });
Wait. What's the "index" in there for. I don't need that, do I? Seems to work fine without it. I'll assume that was a leftover from a previous idea.