How do I use an instance <rect> for svg for its class?
<rect>
svg
I need to delete lines that have the same class as the click <rect> .
I tried using selction.class() which clearly didn't work and didn't help selection.classed() .
selction.class()
selection.classed()
When using d3 I found this to work
selection.attr("class");