You need to use :not() Selector
for this. because there is no exact opposite selector exist of [^=]
and *
in jquery.
:not() Selector - Selects all elements that do not match the given selector.
See more about Jquery selectors
There a opposite selector exist !
-
Attribute Not Equal Selector [name!="value"] - Select elements that either don’t have the specified attribute, or do have the specified attribute but not with a certain value.
but use of this !
selector, you need to provide full-name of class.
$('div[class!="magazine"][class!="may-moon"]')
Try This