Re: Why is there != attribute selector in CSS?

On Wed, Oct 12, 2011 at 09:42, Fred . <eldmannen@gmail.com> wrote:
> Why is there != (negative) attribute selector in CSS?
> Such as:
> option[value!="Foo_"] or ~^="Foo_"
>
> Is there any way I can select anything except option[value^="Foo_"] ?

:not can be used for this:

option:not([value="Foo_"])

-t

-- 
http://tantek.com/ - I made an HTML5 tutorial! http://tantek.com/html5

Received on Wednesday, 12 October 2011 14:38:34 UTC