Re: [jQuery] tooone7 Can't understand this... Want to make a image appear on active link

2010-02-22 Thread Jonathan Vanherpe (T T nv)
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

Re: [jQuery] tooone7 Can't understand this... Want to make a image appear on active link

2010-02-22 Thread tooone777
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

Re: [jQuery] tooone7 Can't understand this... Want to make a image appear on active link

2010-02-22 Thread Jonathan Vanherpe (T T nv)
$('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

Re: [jQuery] tooone7 Can't understand this... Want to make a image appear on active link

2010-02-22 Thread tooone777
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