[jQuery] :not selector

2009-02-27 Thread PedroSeabra
when I do this: $("*:not(.oneClass,(.oneClass :nth-child(n)))") or $("*:not(.oneClass,.oneClass :nth-child(n))") it returns 0 elements, but $(".oneClass,(.oneClass :nth-child(n))") returns only about half of the elements i get with $("*") am i doing something wrong? is there any known bug's

[jQuery] not selector

2009-02-01 Thread Javier Martinez Fernandez
I'm having some problems using the "not" selector on my jquery code. I have elements that have one classname "first" and only one of them has a second classname "second" (that is used in many other elements). I want to select the elements that have the "first" but not the "second". The se

[jQuery] :not selector ---> not working

2008-12-20 Thread chinnakarup...@gmail.com
Hi, I tried a eg for :not operator.According to which it should not pick up the Table header but it does .what am i missing. One more question what is the significance of putting the 'th' in the square bracket .is it OK to write like this. $('tr:not(th):even').addClass('even'); THnks http

[jQuery] Not selector help

2008-09-03 Thread Brad
I'm looking for the quickest way to uncheck all of the checkboxes on a page except for one with a given idea. I realize I could uncheck all, then check one, but I'm curious if I can leverage not: to accomplish what I want to do?

[jQuery] Not selector help (Solved)

2008-09-03 Thread Brad
How to use :not in the selector was throwing me. Docs were down, but back up (but very slow). $ ("[type=checkbox]:not('#specific_checkbox_id')").removeAttr('checked') On Sep 3, 12:57 pm, Brad <[EMAIL PROTECTED]> wrote: > I'm looking for the quickest way to uncheck all of the checkboxes on a > p

[jQuery] :not selector broken in v1.2.1?

2007-10-26 Thread jkl
Hi, I am running the sample from the learning jquery book chap.2 on p. 28. $('th').parent().addClass('table-heading'); $('tr:not([th]):even').addClass('even'); $('tr:not([th]):odd').addClass('odd'); It runs fine with the v1.1 that is included with the sample codes from packtpub.com. How

[jQuery] "NOT" Selector

2007-06-07 Thread James
Hi All, I've googled and googled to no avail, this question has too many instances of words like "not" in it and I'm struggling to find anything useful. I'm doing something quite complex but the crux of the question is this, with a structure like so: Menu Link Menu Li