Skip to content

Instantly share code, notes, and snippets.

@samuelcotterall
Created May 21, 2015 10:26
Show Gist options
  • Save samuelcotterall/639b9090ba9c4dbd21e7 to your computer and use it in GitHub Desktop.
Save samuelcotterall/639b9090ba9c4dbd21e7 to your computer and use it in GitHub Desktop.

Revisions

  1. samuelcotterall created this gist May 21, 2015.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    $("#myformid").find("input, select").on('change', function(){
    $("#myElement").addClass("myclass");
    });