Show Hide Javascript

A Simple hide and show javascript code

function show(menuName) {
var myVar= document.getElementById(menuName);
myVar.style.display = ‘block’;
}

function hide(menuName) {
var myVar = document.getElementById(menuName);
myVar.style.display = ‘none’;
}

CategoriesIT

Leave a Reply

Your email address will not be published.