i never explained but im trying to make it so if you click div1, div2 gets a class added to it. SOLVEDD!!!!!!! excuse the explicit name....
$(function(){ $('#wonderland').onclick = function(){ $('#memo').addClass('pussy'); }; });
i got this
hopefully document.getElementById("wonderland").addEventListener("click", function() { this.classList.add("pussy"); }); works!!!
const aa = document.getElementById("banned"); const memo = document.getElementById("memo"); aa.addEventListener("click", () => { memo.classList.add("pussy"); }); WAS THE ANSWER