tooone777 wrote:
$(ul#nav_prim a)[i]...
you need to use
$(ul#nav_prim a).eq(i)...
or
$(ul#nav_prim a:eq(+i+))...
Jonathan
--
Jonathan Vanherpe - Tallieu Tallieu nv - jonat...@tnt.be
Jonathan Vanherpe (T amp; T NV) wrote:
tooone777 wrote:
$(ul#nav_prim a)[i]...
you need to use
$(ul#nav_prim a).eq(i)...
or
$(ul#nav_prim a:eq(+i+))...
Jonathan
--
Jonathan Vanherpe - Tallieu Tallieu nv - jonat...@tnt.be
I changed my code to the way you suggested, the
$('selector')[index] returns the actual DOM element, while
$('selector').eq(i) returns a jquery object (you can see a jquery object
as some sort of a shell around the actual DOM node that the jquery
functions work on).
You can only use the jquery .css() function on jquery objects, and not
Ohh ok cool! Thank you Jonathan. I understand it better now :)
--
View this message in context:
http://old.nabble.com/tooone7-Can%27t-understand-this...-Want-to-make-a-image-appear-on-active-link-tp27686495s27240p27687083.html
Sent from the jQuery General Discussion mailing list archive at
4 matches
Mail list logo