I am trying to select two classes like this,
d3.selectAll(".class1.class2")
but this appears to select an element with both class1
AND class2
. How do I select an element by class with class1
OR class2
but the classes need not be mutually exclusive, so an element with both classes should also get selected.
Perhaps the solution is just,
d3.selectAll(".class1")
.........;
d3.selectAll(".class2")
.........;
DOMException: Failed to execute 'querySelectorAll' on 'Element': '.class1||.class2||.class3' is not a valid selector.
– Nahshon