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