Really basic jquery plugin template - with callback


/ Published in: JavaScript
Save to your folder(s)

This is a really basic skeleton template for jQuery plugins. It provides a callback function which can be called anywhere in your plugin with base.success(); This will return the current element, but you can pass anything you like back by changing the base.$el value passed to the function to whatever you like.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.