I need to create navigation that shows / hides multiple divs.
Here is what I need to be able to do: If a user clicks on any of the \"options
EDIT: for a non JQuery solution try this:
function showHide(element) {
var field = document.getElementById(element);
if (element) {
if (field.style.display == 'none') {
field.style.display = 'block';
} else {
field.style.display = 'none';
}
}
}
That would be your code to show and hide in your JS
That should get you started :-)
Totally missed the Jquery my bad