title: Select multiple images within a div
body: <p>I am trying to create a gallery page in my application. I have a requirement where I need to create a new album by selecting some of the images on a page. I am displaying them in a div as shown below. Each image in the page has been given a unique id.</p>
  
  <p><img src="https://i.stack.imgur.com/YApID.png" alt="enter image description here"></p>
  
  <p>I want to allow users to select some of the images in that div to create a new album. Selected images should be indicated by a special styling, similar to the image below. How can I detect when a user has selected an image, and display the selected images accordingly?</p>
  
  <p><img src="https://i.stack.imgur.com/GQ2SD.png" alt="enter image description here"></p>