Hello, I am having trouble and this is the most welcoming community to a beginner in programming.
When the user clicks a section of text in the below diagram, I would like for a different image to show for each section of text.
I have tried several solutions that have not worked (like this https://stackoverflow.com/questions/19251340/onclick-show-div-but-hide-when-other-one-is-clicked). The example used jQuery, which I could not translate to Vanilla JS. I would also like to use classes, rather than ID, so as to have reusable code.
Any suggestions or pointers in the correct direction are very appreciated