Posted By

emilbjorklund on 01/19/11


Tagged

javascript js jquery


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

AllKnightAccess
jillella
toltmanns
jaypplr
codex


jQuery plugin skeleton


 / Published in: JavaScript
 

  1. (function($) {
  2. $.fn.pluginname = function(options) {
  3. var settings = $.extend({},
  4. $.fn.pluginname.defaultOptions, options);
  5.  
  6. return this.each(function() {
  7. var $this = $(this);
  8. });
  9. };
  10.  
  11. $.fn.pluginname.defaultOptions = {
  12. };
  13. })(jQuery);

Report this snippet  

You need to login to post a comment.