Great!! I got it working! Thanks you very much!!!
BTW It also works without the " return this.each() { " part! On 6 jan, 17:32, Šime Vidas <sime.vi...@gmail.com> wrote: > $("a.less").livequery( 'click', function() { > $(this).closest(".project").closeProject(); > return false; > > }); > > $.fn.extend({ > closeProject: function() { > return this.each() { > $(this).find(".morebody").slideUp('normal'); > } > } > > });