by @kodeazy
javascript How to remove class in HTML tag?
- With the help of
removeAttribute
method we can remove class attribute from HTML tag based on given index. -
Below is the syntax to remove class attribute from div tag.
document.getElementsByClassName("removableClass")[0].removeAttribute('class');