based on a name, also called a method plugin and a function based plugin, also called a plugin function
- Method plugins should always return a jQuery object (this, in code), to ensure chaining.
- Functional plugins do not support chaining; method plugins support chaining.
- Method plugins should always return a jQuery object (this, in code), to ensure chaining.
- Method plugins extend the jQuery.fn object, function plugins directly extend the jQuery object.
source
share