So I\'m new with JavaScript (this is actually my first attempt to make something work) and I\'m having a bit of trouble. I thought I had enough knowledge to make this work,
The problem was that you were using .src without needing it and you also needed to differentiate which img you wanted to change.
.src
img
function changeImage(a, imgid) { document.getElementById(imgid).src=a; }