Rasheed Tolulope

Greenhorn
+ Follow
since Jun 18, 2023
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rasheed Tolulope

You can use the toggle method on classlist to on / off a class on an element in js.

Example.
const button = document.querySelector("button")


button.addEventListener("click", () => {
   button.classList.toggle("switchModalBox")
})