In HTML, I can clear a element with this command: div.innerHTML = \"\"; Is there an equivalent if I have an
element with this command: div.innerHTML = \"\"; Is there an equivalent if I have an
div.innerHTML = \"\";
Is there an equivalent if I have an
If you're using jQuery, you can just do
$("#svgid").empty();
This deletes all child elements of the svg while leaving its other attributes like width and height intact.