jQuery Plugin Structure


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



Copy this code and paste it in your HTML
  1. (function($){
  2. $.fn.extend({
  3. helloWorld : function(options) {
  4. // Plugin options
  5. var options = $.extend({
  6. foo: 'hello '
  7. }, options);
  8.  
  9.  
  10. return this;
  11. }//,
  12. });
  13. })(jQuery);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.