J
jim
Hi,
I've browsed the posts and examined several closely, but can't seem to
find what I'm looking for. I have an html table consisting to two
rows, with three cells on top (A, B, and C) and a fourth spanning the
bottom (D). Each cell beyond A contains a menu populated by a
selection in the cell prior. (for example, a choice in column A
produces a specific menu in column B. A choice from that menu creates
a new menu of subcategories in column C)
I would like to reset all selections *beyond* that selected when a new
selection is made. For example, if I've made choices in A through D,
but then click a new item in column B, C should reflect the new
submenu and D should be clear. Likewise, if I choose a new item in A,
B should reflect a new submenu and C and D should be cleared.
The following code gets me part of the way there, but the menus seem
to just stack on to one another:
(appears at the bottom of the document within the javascript <script>
tags):
<!-- document.startform.reset(); //-->
The clickable items are linked as such:
<a href="#a_varITEM" onClick="return show('varITEM')">ITEM</a>
The rest of the code is as follows:
<!--
function show( what )
{
var obj = document.getElementById("div_"+what);
if ( obj.style.display != 'block' )
{
obj.style.display = 'block';
}
else
{
obj.style.display = 'none';
}
return true;
}
// End -->
Any ideas how to make this serve its intended purpose?
Thanks in advance.
I've browsed the posts and examined several closely, but can't seem to
find what I'm looking for. I have an html table consisting to two
rows, with three cells on top (A, B, and C) and a fourth spanning the
bottom (D). Each cell beyond A contains a menu populated by a
selection in the cell prior. (for example, a choice in column A
produces a specific menu in column B. A choice from that menu creates
a new menu of subcategories in column C)
I would like to reset all selections *beyond* that selected when a new
selection is made. For example, if I've made choices in A through D,
but then click a new item in column B, C should reflect the new
submenu and D should be clear. Likewise, if I choose a new item in A,
B should reflect a new submenu and C and D should be cleared.
The following code gets me part of the way there, but the menus seem
to just stack on to one another:
(appears at the bottom of the document within the javascript <script>
tags):
<!-- document.startform.reset(); //-->
The clickable items are linked as such:
<a href="#a_varITEM" onClick="return show('varITEM')">ITEM</a>
The rest of the code is as follows:
<!--
function show( what )
{
var obj = document.getElementById("div_"+what);
if ( obj.style.display != 'block' )
{
obj.style.display = 'block';
}
else
{
obj.style.display = 'none';
}
return true;
}
// End -->
Any ideas how to make this serve its intended purpose?
Thanks in advance.