my jquery plugin template


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



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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.