console.log($('svg.datamap').html())
I am trying to select a SVG element with class attribute as "datamap". It doesn't work because I am creating the svg element dynamically. How do I solve this? Or is there a way to select dynamically created elements in javascript?