Hi,
I'm new at javascript. I'm looking for help with the code below. I am trying to create a nav bar with opening and closing divs (vertical tab menu). However I'd like to have the ability for the user not to have to close the div in order to select the next div. Is there any action i can add to the code below to enable this function? Thank you.
<script type="text/javascript">
function unhide(divID) {
var item = document.getElementById(divID);
if (item) {
item.className=(item.className=='hidden')?'unhidden':'hidden';
}
}*/
</script>
<div id="FabNav">
<div id="fb-tab" class="tab-header"><a href="javascript:unhide('fb-description');" class="button">Dropdown One</a></div>
<div id="fb-description" class="hidden">
<table width="512px" border="1" bordercolor="#666666" cellspacing="0" cellpadding="0">
<tr>
<td>
</div>
<div id="fb-tab" class="tab-header"><a href="javascript:unhide('fb-description');" class="button">Dropdown Two</a></div>
<div id="fb-description" class="hidden">
<table width="512px" border="1" bordercolor="#666666" cellspacing="0" cellpadding="0">
<tr>
<td>
</div>
</div>