Skip to content

Instantly share code, notes, and snippets.

@vpivo
Last active December 16, 2015 13:19

Revisions

  1. vpivo revised this gist Apr 23, 2013. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions jquery_notes.txt
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,12 @@ $(document).ready(function() {
    $('button').click(function() {
    $('.vanish').fadeOut('slow');
    });
    });

    Using this:

    $(document).ready(function() {
    $('div').click(function() {
    $(this).fadeOut('slow');
    });
    });
  2. vpivo revised this gist Apr 23, 2013. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions jquery_notes.txt
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,10 @@ $(document).ready(function() {
    $(thingToClick).event(function() {
    $(thingToAffect).effect();
    });
    });

    $(document).ready(function() {
    $('button').click(function() {
    $('.vanish').fadeOut('slow');
    });
    });
  3. vpivo created this gist Apr 23, 2013.
    7 changes: 7 additions & 0 deletions jquery_notes.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    Format:

    $(document).ready(function() {
    $(thingToClick).event(function() {
    $(thingToAffect).effect();
    });
    });