I have list of images like this
<p><img id="image" src="001.jpg" height="1000"></img></p>
<p><img id="image" src="002.jpg" height="1000"></img></p>
<p><img id="image" src="003.jpg" height="1000"></img></p>
<button onclick="plus()">+</button>
<button onclick="minus()">-</button>
I tried using this script, to increase or decrease all of my images height with a button, but its only increase/decrease the first image
function plus() {document.getElementById("image").height+=50;}
function minus() {document.getElementById("image").height-=50;}
Why's it only increase/decrease the first image and how to make it work on all images??