[Solved] Selecting images in Javascript using


In html add eight respective containers say div with proper unique Id. Use the event click. On click call a function passing the div id.
In JavaScript, map each Id to a state and pass the relevant information back to html.

Note: the container can be any html component.

0

solved Selecting images in Javascript using