Event Listener Help (making one button/element do multiple things)
Hi I have this issue where I cant get more than one event from my code.
the goal is to have this display both functions in order....any help would
be awesome!!!
var button = document.getElementById("button element");
//only clicks once:
button.addEventListener("click", function, false);
button.addEventListener("click", function2, false);
No comments:
Post a Comment