Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selector for select elements with names that don't start/end with "something"

In jQuery it's possible to select all elements that start/end with "something".

 = is exactly equal
!= is not equal
^= starts with
$= ends with

Is it possible to select all elements that don't start/end with "something"?

like image 815
Cthulhu Avatar asked Jul 19 '12 16:07

Cthulhu


1 Answers

Use the :not selector:

:not([id^=foo])
like image 136
bevacqua Avatar answered Nov 19 '22 14:11

bevacqua