javascript - How to remove svg inside a div -
i using d3.js. markup:
<div class="graph-container"> <!--graph svg--> </div> <div class="graph-container"> <!--graph svg--> </div> <div> <!--some other svg--> </div>
i using following js remove svg elements:
d3.selectall("svg > *").remove();
but want remove svgs present inside class graph-container. how can that?
d3.selectall('.graph-container svg').remove();
Comments
Post a Comment