Skip to content

Instantly share code, notes, and snippets.

@vpivo
Last active December 16, 2015 13:19
Show Gist options
  • Save vpivo/5441068 to your computer and use it in GitHub Desktop.
Save vpivo/5441068 to your computer and use it in GitHub Desktop.
Format:
$(document).ready(function() {
$(thingToClick).event(function() {
$(thingToAffect).effect();
});
});
$(document).ready(function() {
$('button').click(function() {
$('.vanish').fadeOut('slow');
});
});
Using this:
$(document).ready(function() {
$('div').click(function() {
$(this).fadeOut('slow');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment