I have a div that contains a register wizard, and I need hide/show this div when a button is clicked.
How can I do this?
Below I show you t
The following solution is:
getElementById is called once at the outset. This may or may not suit your purposes.mydiv = document.getElementById("showmehideme");
function showhide(d) {
d.style.display = (d.style.display !== "none") ? "none" : "block";
}
#mydiv { background-color: #ffffd; }
This div will show and hide on button click.