DEV Community

Krenil Kshatriya
Krenil Kshatriya

Posted on

Toggle Hide and Show 🔥


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/

Top comments (0)