I\'m having several div\'s #mydiv1, #mydiv2, #mydiv3, ... and want to assign click handlers to them:
#mydiv1
#mydiv2
#mydiv3
$(document).ready
To clarify, i is equal to 20 because the click event won't have fired until after the loop has finished.