My page allows the user to select an option from a combo box (e.g. the options are name, position, and year). How do I make another combo box visible once or after the user has selected an option from the first combo box? Help! :confused:
Printable View
My page allows the user to select an option from a combo box (e.g. the options are name, position, and year). How do I make another combo box visible once or after the user has selected an option from the first combo box? Help! :confused:
There are different ways to do it, ways that are more compliant and meet the W3C standards. You can check W3C, actually.Code:<script language='JavaScript'>
Show () {
document.myForm.mySelect.style.display = "";
}
</script>
Anyway, you just set the display attribute. You can set it to "none" aswell. But this function name on the onChange event of the triggering box.
just a question, but wouldn't it be:
? i could be wrong though...Code:<script language='JavaScript'>
Show () {
document.myForm.mySelect.style.visibility = visible;
}
</script>