Skip to content

Instantly share code, notes, and snippets.

@massimilianop7
Last active December 11, 2015 11:48
Show Gist options
  • Save massimilianop7/4596694 to your computer and use it in GitHub Desktop.
Save massimilianop7/4596694 to your computer and use it in GitHub Desktop.
cuando haga click en un div, este div se oculta y los siguientes desaparecen.
$('div').bind('click', function() {
$(this).hide ('slow')
});
$('div').bind('click', function() {
$(this).nextAll().animate ({opacity:0,}, 1000)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment