Answer the question
In order to leave comments, you need to log in
How to add a class to an object on click?
Hello. I can't figure out why this is the code:
nextSlide = function () {
var slide = document.getElementById("scalable");
slide.classList.add("outDown");
};
Uncaught TypeError: Cannot read property 'classList' of null
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question