Answer the question
In order to leave comments, you need to log in
Why is the class not added to the element when using addClass?
Good afternoon! Please tell me how to solve the problem.
I use this code:
var flID = '#preview' + $num;
var elemFL = angular.element(document.querySelector(flID));
elemFL.addClass('arrow_top');
console.log(elemFL);
<div id="preview0" class="">
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