How to remove CSS styles for a HTML element with JavaScript

1 Answer

0 votes
.container{
    background: yellow;
    color: blue;
    font-size: large;
}
<div class="container">text</div>
const el = document.querySelector('.container');

el.classList.remove('container');

 



answered May 22, 2021 by avibootz
...