[jQuery] Re: some $.index() prob

2008-04-11 Thread hex0id
Problem fixed. :) On 11 апр, 15:48, hex0id <[EMAIL PROTECTED]> wrote: > Hello guys, > > recently I faced problem with index function, example in documentation > works perfectly but it's slightly simple. When I try to use this > function in more complexed way it's not working, here's what I'm > tr

[jQuery] Re: some $.index() prob

2008-04-11 Thread Richard D. Worth
try this: $li.parent().index($li) The index method needs to be called on the container element (in this case, the ul), while passing the child element. - Richard Richard D. Worth http://rdworth.org/ On Fri, Apr 11, 2008 at 4:48 AM, hex0id <[EMAIL PROTECTED]> wrote: > > Hello guys, > > recentl