I am trying to select all elements with a certain class. They might have different classes before, or after this class, but as long as they have this class they should be selected
ex:
<g class="class a, class b, class c">
<g class="class q, class r, class z">
<g class="class d, class b, class e">
I wish to select the 1st and 3rd elements, because they have are both under class b
. Any suggestions?
I thought d3.selectAll(".class b")
would work, but it doesn't.