DEV Community

loading...

Toggle Hide and Show 🔥

Krenil Kshatriya
Learning Web Dev
・1 min read


what is there in my DOM(On the page)
=> some dummy text
=>a button

what do the button actually does?
=> when ever the user click on the button for the

  1. first time it will disappear the above the text 2.second time it will appear the text back

and this process will continue and continue

x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x

if you find this information helpful and follow me and on codepen/instagram/dev.to and dont forget to like this page.

https://www.instagram.com/krenilll/

Discussion (0)