Whenever my page loads, I try to remove a class from an element, but it still stays there.
I've tried using .removeclass()
and remove()
and getElementById()
and removeChild()
.
var elem = document.getElementById("#logo");
elem.parentNode.removeChild(elem);
<a class="logo" href="/brand/logo.svg"></a>
The class is still being displayed after the change.