Created
February 26, 2013 10:50
-
-
Save gooberling/5037631 to your computer and use it in GitHub Desktop.
Create your own function and then reuse that
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 ($) { | |
$.fn.highlight = function () { | |
$(this).css({ color: 'red', background: 'yellow' }); | |
$(this).fadeIn(); | |
}; | |
$('.element').highlight(); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment