Show info about countries in an accordion menu. For example:


When you click on a country name, the other countries' areas collapse. For example, clicking on Tajikistan shows:

Clicked on Tajikistan

Include at least four countries. Use any countries you like. I used data from the CIA World Fact Book, but you can use another source, if you prefer.

You can copy code from the Bootstrap documentation. Be careful when adding the fourth country. You have to get ids and other attributes just right.

Submit the URL of your solution.

(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)

Referenced in: