Answers for "how to add and remove active class in js"

0

remove active class from all li javascript

<!-- w3.js brings the simple and fast solution -->
<script src="https://www.w3schools.com/lib/w3.js"></script>
<ul>
  <li class="ready">
</li>
  <li class="ready">
</li>
  <li class="ready">
</li>
</ul>
<button onclick="w3.removeClass('li','ready');"></button>
Posted by: Guest on April-24-2021

Code answers related to "how to add and remove active class in js"

Browse Popular Code Answers by Language