Skip to content

Instantly share code, notes, and snippets.

@avireni
Created April 13, 2012 23:18
Show Gist options
  • Save avireni/2380745 to your computer and use it in GitHub Desktop.
Save avireni/2380745 to your computer and use it in GitHub Desktop.
Bind a function to an event
$('#foo').bind('click', function() {
alert('User clicked on "foo."');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment