how to get access of html element in javascript
I have added dynamic svg element (below is the code) and now wanted to access circle element by id to update its css.
// Circle New
xmlsrc_in = '<circle id="bar" r="30" cx="100" cy="100" transition="stroke-dashoffset 1s linear" stroke="green" stroke-width="1em" fill="transparent" stroke-dasharray="565.48" stroke-dashoffset="0"></circle>'
xmlsrc=xmlsrc+'<svg class="svg" xmlns="http://www.w3.org/2000/svg" height="200" width="200" viewPort="0 0 100 100" version="1.1">\n'
xmlsrc=xmlsrc+ xmlsrc_in
xmlsrc=xmlsrc+'</svg>'
Can someone tell me how could I access circle element by id/class etc (bar) in javascript function?

