[jQuery] Re: about :not(:last)

2009-02-03 Thread Garito
> It's not a bug, it's the documented behavior: > > :first > Matches the first selected element.http://docs.jquery.com/Selectors/first I cite from the link above: Finds the first table row. $ ("tr:first").css("font-style", "italic"); Seems quite clear > > Let's go through it again. When you cal

[jQuery] Re: about :not(:last)

2009-02-03 Thread Ricardo Tomasi
It's not a bug, it's the documented behavior: :first Matches the first selected element. http://docs.jquery.com/Selectors/first Let's go through it again. When you call $(this).parents() you get this array of elements: [0] [1] [2] [3] [4] [5] Which are all the element's parents, in orde

[jQuery] Re: about :not(:last)

2009-02-02 Thread Garito
Sorry, Ricardo, but this isn't so much logic, isn't it? When I see dl:not(:first) I read give me all dl except the first one Imagine this was a mathematics expression We read from left to right: first filter all dl's with the result exclude the first one I can understand a bug but it's dificul

[jQuery] Re: about :not(:last)

2009-02-02 Thread Ricardo Tomasi
I haven't seen your page, but I know that styling and elements for IE is a pain. And the invalid mark-up might bring you problems with different browsers. The usual behavior for invalid nesting is to close the offended tag to make it valid, so this would become

[jQuery] Re: about :not(:last)

2009-02-02 Thread Garito
Sorry Ricardo but you say the problem is the dt element? With this markup I can do what I need in terms of css With the css I put the divs inside the dt element to put a label, the icon and the other div to switch between visible/non visible dd How do you think I could put my markup to avoid th

[jQuery] Re: about :not(:last)

2009-02-02 Thread sharath Babu
My Code looks somthing like this when i hover on the icon i can see the message on click i am changing the properties, as it shows, will this work function sayHello() { $.fn.cluetip.defaults.sticky=true; $.fn.cluetip.defaults.activation='focus'; document.getElementById("test12345").focus

[jQuery] Re: about :not(:last)

2009-02-02 Thread Ricardo Tomasi
Ah that's quite confusing mark-up. A element can only contain inline elements, certainly not divs and other definition lists. Nested definition lists make no sense! I couldn't find the problem. Try $(this).parents('dl').slice(1) or $(this).parents('dl').slice (0,-1), that will probably work. ch

[jQuery] Re: about :not(:last)

2009-02-01 Thread Garito
Gracias, Ricardo! I change the code with the complete test case for my issue Sorry for the identation but the original code is generated and I copy/ paste with firebug If I'm not wrong, with the selector 'dl:not(:last)' SITE dl is incorrect in the returned list because is the last dl (if not 'dl

[jQuery] Re: about :not(:last)

2009-02-01 Thread Ricardo Tomasi
http://jquery.nodnod.net/cases/85 Parece ok aqui. Pode ser alguma outra coisa na tua página, não dá pra saber sem ver o html. Seems to work fine here. Could you post a complete test page showing this issue? - ricardo On Feb 1, 1:25 pm, Garito wrote: > Hi! > Please, consider this code: