The following code is used to show/hide a div using JavaScript:
function toggle(e) {
var x = document.getElementById(e);
if (x.style.display == "none")
{
x.style.display = "block";
}
else {
x.style.display = "none";
}
}
No comments:
Post a Comment