jQuery Plugin Template which uses jQuery's data API
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
README.md
docco.css
index.html
jquery.plugin.template.js
jquery.plugin.template.simple.js

README.md

jQuery Plugin Template

  • Based on Twitter Bootstrap 2.0 plugins
  • Uses jQuery's data API
  • Allows the calling of methods in the plugin via the element

Use

// Initialize
$('.myelement').myplugin({setting1: 1, setting2: 'two'});

// Call a method on the element later on in the code
$('.myelement').myplugin("doSomething");