I try to use this code in my javascript program:
this.classList.remove(RF.DangerClass);
Where RF.DangerClass is global variable. But I get error -
InvalidCharacterError: String contains an invalid character
What's wrong? I can't use variable in this statement?
RF.DangerClass contain this string: uk-form-danger uk-animation-shake
What should I do if need to remove two classes?
RF.DangerClasscontain?