Remove active class from all li javascript

Code examples

0
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>

Similar pages

Similar pages with examples

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................