Hi Adam,

try this:

$('li.expandable:not("[a.on]")')

A couple things to note:
1. you don't need to repeat "li.expandable" inside the ":not"
2. If you are using single quotation marks around the whole selector expression, use double quotation marks around the selector for the :not pseudo-class.

Cheers,
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Feb 20, 2007, at 9:19 AM, agent2026 wrote:


Hi all,

I want to select all line items without child a tags with a class of 'on'.

I can select the line items with the a tags:

$('li.expandable[a.on]');

But when I try :not I come up empty:

$('li.expandable:not(li.expandable[a.on])');


What am I doing wrong?

Adam
--
View this message in context: http://www.nabble.com/Select-elements- without-specific-children-tf3260789.html#a9062578
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to