The attached contains two drop-down lists - apples and oranges. Each drop-down list has a default list item value of " ", thus the default index is 0 (zero). If you select a value other than default, the other drop-down list has it's access protected and the list item reset to 0 (zero). Conversely, if you select the default value, the other drop-down list becomes open or accessible.
// form1.page1.apples::exit - (JavaScript, client)
if (form1.page1.apples.selectedIndex != 0) {
form1.page1.oranges.access = "protected";
form1.page1.oranges.selectedIndex = 0;
}
else {
form1.page1.oranges.access = "open";
}
// form1.page1.oranges::exit - (JavaScript, client)
if (form1.page1.oranges.selectedIndex != 0) {
form1.page1.apples.access = "protected";
form1.page1.apples.selectedIndex = 0;
}
else {
form1.page1.apples.access = "open";
}
Steve