jQury plugin syntax


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



Copy this code and paste it in your HTML
  1. /**
  2.  Plugin: name
  3.  author: me
  4.  website: link
  5.  version: 1.0
  6. */
  7. (function($){
  8. $.fn.fucntion_name = function(options) {
  9.  
  10. var defaults = {
  11. context: 'value'
  12. };
  13. var options = $.extend(defaults, options);
  14.  
  15. //Do something
  16. };
  17. })(jQuery);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.