jQuery plugin skeleton


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



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.