Hi guys,
Im having a problem with some code here.
I have 2 divs and 2 buttons. I want 1 dive to hide and 1 display when i click one button. And when I click the other button the other div displays/hides.
I'm using the below code but it just won't work for me. Any help would be great!
<script type="text/javascript">
function toggle_view(show,hide){
var x = document.getElementById(show);
var y = document.getElementById(hide);
x.style.display = "block";
y.style.display = "";
}
</script>
Here's my div's code:
<div id="carousel_toggle_top">
[contents]
</div>
<div id="carousel_toggle_special">
[contents]
</div>