Skip to content

Instantly share code, notes, and snippets.

@albertgrala
Created December 9, 2012 00:33
Show Gist options
  • Save albertgrala/4242754 to your computer and use it in GitHub Desktop.
Save albertgrala/4242754 to your computer and use it in GitHub Desktop.
Sandbox: CoffeeScript jQuery hover
# $('.drink li').hover(function() {
# $(this).find('span').show();
# }, function() {
# $(this).find('span').hide();
# });
$('.drink li').hover(
->
$(@).find('span').show()
->
$(@).find('span').hide()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment