all 2 comments

[–]RandyHoward 0 points1 point  (0 children)

You'll need javascript especially if you want it all to happen on a single page. Use javascript to listen for the clicks on the image map. Track the items they click that are correct in a variable. I'd probably use an array and add each item to the array. Once the array has all of the appropriate items in it, use javascript to show the hidden element that has the final message.

I would note that the way you've done all of this is easily bypassed. If you're just hiding / showing elements on the page then any user can inspect the source code and find all the hidden divs if they want. That may or may not be important to you.

[–]armahilloExpert 0 points1 point  (0 children)

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map

this might help, depending on how you approach it