How to show a span onclick while hiding all other spans? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to show a span onclick while hiding all other spans?

In this code I have 3 spans- length, speed, height.When I click on the temperature button it should show temperature and hide the other two spans.But it is not working.Please help me. https://code.sololearn.com/WZV9SWlsrey6/?ref=app

21st May 2017, 12:41 PM
Evans
4 Answers
+ 1
Hi you should close your div <div class="w3-half w3-margin-top"> on line 52
21st May 2017, 2:33 PM
ahmad mansouri
ahmad mansouri - avatar
0
but it is working
21st May 2017, 1:10 PM
Evans
0
hey thanks.
21st May 2017, 3:31 PM
Evans
- 1
font tag is not supported in HTML5
21st May 2017, 1:10 PM
Calviղ
Calviղ - avatar