+ 4

How do I create buttons that make whatever is currently on a screen disappear and something new display?

I have three button called Html, Css, and JavaScript. When a button is pressed I want it to display text that has the same id as it and when I click another button I want the previous text to disappear to display the new text for the new button that is pressed. Anyone know how to achieve this? https://code.sololearn.com/W6GEd4Z20MOx/?ref=app

21st Mar 2018, 11:27 PM
Babydoll Scripts
Babydoll Scripts - avatar
5 Answers
+ 4
I'm a girl, but okay.
23rd Mar 2018, 1:08 AM
Babydoll Scripts
Babydoll Scripts - avatar
+ 3
In your example, how come when I click the button again it doesn't display "hide me" again?
26th Mar 2018, 8:07 PM
Babydoll Scripts
Babydoll Scripts - avatar
+ 2
Can you explain that more clearly?
22nd Mar 2018, 12:53 AM
Babydoll Scripts
Babydoll Scripts - avatar
+ 2
No flirting in my questions!
22nd Mar 2018, 10:42 PM
Babydoll Scripts
Babydoll Scripts - avatar
+ 2
i got excited when i saw so many messages thinking i got more answers and tips...
22nd Mar 2018, 10:50 PM
Babydoll Scripts
Babydoll Scripts - avatar