Can anyone tell me how to make toggle buttons with JavaScript and (true and false statements)only? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anyone tell me how to make toggle buttons with JavaScript and (true and false statements)only?

12th May 2018, 9:17 PM
Rashmi Garg
Rashmi Garg - avatar
2 Answers
+ 5
Literally first google search. Takes less time than writing a question. https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp
12th May 2018, 11:09 PM
Toni Isotalo
Toni Isotalo - avatar
0
What are you toggling? jQuery has many toggling functions already built in too, unless you're doing it for the learning experience.
12th May 2018, 10:53 PM
Zeke Williams
Zeke Williams - avatar