Hi i doing a mini project of my class. I make the website book ticket for movies. I want to change color of the seat after click. But it just work for first seat. I want it work for other seat. Thank you.
const img=document.getElementById('seat')
let toggle = true;
img.addEventListener('click',function(){
  toggle=!toggle;
  if(toggle){
    img.src = 'seat.png';
  }
  else{
    img.src = 'seat2.png';
  }
  
})

 
     
    