Created
August 27, 2013 18:33
-
-
Save kmaida/6357251 to your computer and use it in GitHub Desktop.
Create jQuery method
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
$.fn.methodName = function(){ | |
return this.each(function(index, element){ | |
$(this) | |
.html('A method was called on me!') | |
.css('background', 'green'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment