Skip to content

c4urself/jQuery-Plugin-Template

Repository files navigation

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");

About

jQuery Plugin Template which uses jQuery's data API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published