I'm having difficulties selecting a svg element (actually written like img and converted later to svg using jQuery).
The code is:
Html:
<div class="tab-content">
<div id="personas" class="active">
<span id="boton_auto"><img class="svg" src="img/auto.svg" /></span>
</div></div>
and jQuery
$(".tab-content div span").find( "svg" ).addClass("activo");
What could be the problem? Thanks in advance!