Source Code:
(back to article)
Submit
Result:
Report an issue
<style> .existing-class { text-decoration: underline; color: red; } </style> <div id="myDiv" class="existing-class">Another manipulation example</div> <script> document.getElementById("myDiv").classList.remove("existing-class"); </script>