A selector to select items with names that do not start / end with "something",

In jQuery, you can select all elements that start / end with something.

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

Is it possible to select all the elements that do not start / end with "something"?

+7
source share
1 answer

Use the :not selector:

 :not([id^=foo]) 
+9
source

All Articles