javascript - I am trying to extract an element from the DOM, how is this done? -
this code ran each time generates graph, in addition set id of tag graph using this. have case need logarithmic graph. @ first thought converted string, returns [object svgsvgelement
you can use xmlserializer convert dom object string
var s = new xmlserializer(); var str = s.serializetostring(element);
Comments
Post a Comment