|
-
Jun 21st, 2001, 04:21 AM
#1
Thread Starter
Member
Making combo boxes visible
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!
-
Jun 21st, 2001, 11:03 AM
#2
Frenzied Member
Code:
<script language='JavaScript'>
Show () {
document.myForm.mySelect.style.display = "";
}
</script>
There are different ways to do it, ways that are more compliant and meet the W3C standards. You can check W3C, actually.
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.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Jun 21st, 2001, 06:06 PM
#3
PowerPoster
just a question, but wouldn't it be:
Code:
<script language='JavaScript'>
Show () {
document.myForm.mySelect.style.visibility = visible;
}
</script>
? i could be wrong though...
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|