In my html file below, I load a svg file through a img tag. I want to select a particular path element in the svg file and manipulate it like change the rotation of just the selected path element. This isn't working, does anyone know why?
Thanks
<!DOCTYPE html>
<html>
<head>
<title>Animate</title>
<style>
</style>
<script src="../js/plugin/jquery-2.1.4.min.js"></script>
<script>
$(document).ready(function() {
var right_arm = document.querySelector('steve.right_arm');//in JS
var a = 1;
});
</script>
</head>
<body>
<img id="steve" src="images/steve/steve.svg" height="300" alt="Steve"/>
</body>
</html>