PDA

View Full Version : DomQuery - Select all links except rel="external"



tony.summerville
4 May 2007, 6:01 AM
I'm having trouble figuring out how to select all links, except the ones with a rel="external" attribute.

Here's what I've got:

Ext.select('a:not(a[rel="external"])')

What am I doing wrong? Thanks.

Animal
4 May 2007, 7:36 AM
Experiment using Firebug's console, but I'd guess:



Ext.select("a[rel!='external']")

tony.summerville
4 May 2007, 9:49 AM
That was it. Thanks!