[jQuery] Re: Plugin method

2008-02-11 Thread Olivier Percebois-Garve
Thanks alot Richard I finally came up with the following (makes a nested list of checkboxes and their labels behave like a tree): -Olivier (function($){ $.fn.treeview = function(o){ var defaults = { minus: 'url(style/site/i

[jQuery] Re: Plugin method

2008-02-07 Thread Richard D. Worth
On Feb 7, 2008 6:54 AM, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote: > $li.each(function(o, i){ > $(o).setBg(); > }); > I think you want: $li.each(function(i, o) { setBg(o); }); -or- $li.each(function() { setBg(this); })