So basically I have this code:
var virtualbag = document.getElementById('VirtualBagImage');
<img id="VirtualBagImage" src="virtualbag.php?bag=1&fabric=75&trim=24&hardware=6&width=150" />
alert(virtualbag); says "null".
Thanks for any help.