<div class="tab-contents active-tab">
<!-----------skills details------->
<ul class="skills ">
<li><i class="fa-brands fa-html5 " style="color: #ec3022; "></i><br>HTML</li>
</ul>
</div>
var tablinks = document.getElementsByClassName("tab-links");
var tabcontents = document.getElementByClassName("tab-contents");
function opentab(tabname)
{
for(let tablink of tablinks){
tablink.classList.remove("active-links");
}
for(let tabcontent of tabcontents){
tabcontent.classList.remove("active-tab");
}
}
Hello !above is my code I am trying to remove html content its removing (“active-links”) class but tabcontents are not removing can somebody help me to resolve this issue
I have edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.