Created
August 4, 2012 19:10
-
-
Save cmarkle27/3259408 to your computer and use it in GitHub Desktop.
Simple jQuery Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
// functions and vars here | |
var underline = function underline(e) { | |
$(e.currentTarget).css({ "color" : "yellow" }); | |
}; | |
// -------------------------------------------------------------------- | |
$.fn.simpleOne = function() { | |
return this.on("hover", underline); | |
}; | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment