Hide show java script code not working in my custome post templete

function openProject(evt, projectName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName(“tabcontent”);
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = “none”;
}
tablinks = document.getElementsByClassName(“tablinks”);
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(” active”, “”);
}
document.getElementById(projectName).style.display = “block”;
evt.currentTarget.className += ” active”;
}

its working in first post but did not work in secound post.

Read more here:: Hide show java script code not working in my custome post templete

Leave a Reply

Your email address will not be published. Required fields are marked *