I am trying to get the "left" and "top" attributes to be set to the value gotten from "randomXValue" and "randomYValue" the two functions return integers.
randomXValue = getRandomXValue();
randomYValue = getRandomYValue();
$("#gamespace").append(
'<img src="img/img.jpg" class="gameimg" style = "left: (randomXValue)px; top:
(randomYValue)px;"/>'
);
if I put in an integer instead of the randomValue it will display in the correct location. I am trying to get the image to appear at a random location in the "#gamespace"