Example:
<div id="mydiv" class="current">Content</div>
To change class assignment:
document.getElementById('mydiv').className = 'notcurrent';
To remove the class assignment:
document.getElementById('mydiv').className = '';
Example:
<div id="mydiv" class="current">Content</div>
To change class assignment:
document.getElementById('mydiv').className = 'notcurrent';
To remove the class assignment:
document.getElementById('mydiv').className = '';
1 | Tom-Eric
To break the example:
<div id="mydiv" class="current some-other-class">Content</div>