Skip to content

Instantly share code, notes, and snippets.

@linmx0130
Created June 11, 2013 15:45
Show Gist options
  • Save linmx0130/5757995 to your computer and use it in GitHub Desktop.
Save linmx0130/5757995 to your computer and use it in GitHub Desktop.
Create click event with for (Wrong version)
for (var i=1 ;i<=8;i+=1)
{
$("#Player"+i).click(function(){setMeToTwo(i);});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment