Posted By

lawlesscreation on 09/13/11


Tagged

plugin jquery


Versions (?)

jQury plugin syntax


 / Published in: jQuery
 

  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  

You need to login to post a comment.