[jQuery] Re: .eq(variable) causing problem

2007-11-22 Thread Karl Swedberg
Hi there, I'm not sure, but it could be that the .eq() method is expecting an integer only. Have you tried it this way instead? $("#"+menu+" .itemMenu li:eq("+item1+")").addClass("highlight"); that should do t he trick. --Karl _ Karl Swedberg www.englishrules.com www.lear

[jQuery] Re: .eq(variable) causing problem

2007-11-22 Thread Suni
Do you have a sample page where this problem shows up? It would make debugging a lot easier. There must be some other problem at work here. Using a variable as the parameter should not matter, jQuery doesn't even know where the value comes from (from a var or hardcoded). -- Suni On 22 marras, 03