bring to front svg html

JavaScript
//In SVG, to get a higher larger Z index you should move the element down in the DOM tree
$('g.element').remove().appendTo('svg'); // with jquery
Source

Also in JavaScript: