Posts by Marcel • 23 points
2 posts
-
0
votes2
answers195
viewsQ: How to remove class from other elements by clicking the button?
There are several buttons, which when clicking, opens a box with options. How do I so that when I open a box, the others close? var button = document.querySelectorAll(".popup-btn") var pop =…
-
2
votes5
answers3984
viewsQ: How to compare arrays to javascript?
I have an array that I get from the checkboxes that the user chooses const check_frutas = ["banana", "uva", "pera"]; And in my code, I need to compare this array with others to get the most similar.…