I\'m wondering how to select an element that does not have a specific class using JavaScript, not jQuery.
For example, I have this list:
You can try the :not() selector
:not()
var completeTask = document.querySelector("li:not(.completed):not(.selected)");
http://jsfiddle.net/UM3j5/