I want to know how to hide a text and to be able to display it in a click. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want to know how to hide a text and to be able to display it in a click.

For example, I make a list of five continents. But I do not want to display them directly. I let appear only the title: "continent" accompanied by the symbol which indicates that the content is hidden. And that by clicking on it, the five continents are displayed and the symbol becomes.

21st Jan 2018, 2:09 AM
Vilner NOËLMÉ
Vilner NOËLMÉ - avatar
2 Answers
+ 1
Which language do you want the solution in? C++ or HTML/JS?
21st Jan 2018, 4:15 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
0
HTML
21st Jan 2018, 5:19 AM
Vilner NOËLMÉ
Vilner NOËLMÉ - avatar