Skip to content

Instantly share code, notes, and snippets.

@PickledDragon
Last active September 6, 2015 06:02
Show Gist options
  • Save PickledDragon/ff2c69eacfe7e031ab61 to your computer and use it in GitHub Desktop.
Save PickledDragon/ff2c69eacfe7e031ab61 to your computer and use it in GitHub Desktop.
/******************************/
(function($) {
//Stuff goes here.
$.fn.doSomethingMethod = function() {
var targetElement = this.get( 0 );
}
})(jQuery);
/******************************/
//Usage
$("#someElemenID").doSomethingMethod();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment