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
Use JQuery. You need to set-up a click event on your button which will toggle the visibility of your wizard div.
$('#btn').click(function() {
$('#wizard').toggle();
});
Refer to the JQuery website for more information.
This can also be done without JQuery. Using only standard JavaScript:
Then add onclick="toggle_visibility('id_of_element_to_toggle');" to the button that is used to show and hide the div.