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
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
2 matches
Mail list logo