Skip to content

Instantly share code, notes, and snippets.

@geku
Created June 21, 2011 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geku/1039082 to your computer and use it in GitHub Desktop.
Save geku/1039082 to your computer and use it in GitHub Desktop.
$(document).ready ->
$('a.console').click ->
console.log($(this).text() + ' clicked')
return false
$(document).ready(function() {
return $('a.console').click(function() {
console.log($(this).text() + ' clicked');
return false;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment