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 Nabb
$('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
dir
Jonathan Vanherpe (T & 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
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
Hi everyone!
I started using jQuery yesterday so im a noob.
I have a navigation bar, and i want it to display a background image on the
active menu item. (Like the top most menu on this website, it has a little
blue underline)
So i got this function:
Copy code
1. function displayBgImg() {
5 matches
Mail list logo