I want to select all elements that do not have the class "myclass". How can I do that in Cytoscape.js?
According to http://js.cytoscape.org/#selectors/data, "[^name]
Matches elements if the specified data attribute is not defined", however a class is not a data attribute and ^.myclass
does not work, neither does :not(.myclass)
.
The error is The selector :not(.myclass) is invalid
.
Is there a way to negate classes?