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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -