Posted By

yanekk on 12/18/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vagrantradio


my jquery plugin template


 / Published in: jQuery
 

  1. (function($) {
  2. $.fn.extend({
  3. yAutocomplete: function(options /* object */) {
  4. return this.each(function() {
  5. var settings = jQuery.extend({
  6. /* extending options object with defaults */
  7. }, options);
  8. var self = $(this);
  9. /* here comes the logic */
  10. });
  11. }});
  12. })(jQuery);

Report this snippet  

You need to login to post a comment.