Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // donate page
- var showOther = document.getElementsByClassName("amountOtherWrapper");
- console.log(showOther);
- showOther.addEventListener("click", hideElement);
- function hideElement() {
- if (showOther.className === "hide") {
- showOther.className = "";
- } else {
- showOther.className = "hide";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement