Posts by scarat • 1 point
1 post
-
-3
votes1
answer29
viewsQ: button is triggered without me clicking - jquery
let aplicarCor = function(elemento, cor){ elemento = ("#" + elemento); $(elemento).css("background-color", cor); }; $("#laranja").on("click", (aplicarCor("funcoesComEventos", "orange")));…