Hi,
I'm wondering if there's a way that I can select which <div> to show based
on the user's selection from a dropdown/listbox form.
<form name="form1" method="post" action="">
<select name="internet" >
<optgroup label="Network" >
<option label="option1" >Internet</option>
</optgroup>
<optgroup label="Access">
<option label="option2. 0">Portal</option>
<option label="option2. 1">Webmail</option>
<option label="option2. 2">POP3 Email</option>
<option label="option2. 3">Messenger </option>
<option label="option2. 4">Newsgroup s</option>
</optgroup>
</select>
</form>
Is there a way that I can have a particular <div> show based on a selection
from this list? I know that you can not directly apply actions to the
options, so it presumably there has to be a javascript method of doing it...
If anyone can point me in the right direction, it would be greatly
appreciated.
Thanks in advance!
|veganeater|
// my apologies for the xpost on comp.lang.java. javascript
I'm wondering if there's a way that I can select which <div> to show based
on the user's selection from a dropdown/listbox form.
<form name="form1" method="post" action="">
<select name="internet" >
<optgroup label="Network" >
<option label="option1" >Internet</option>
</optgroup>
<optgroup label="Access">
<option label="option2. 0">Portal</option>
<option label="option2. 1">Webmail</option>
<option label="option2. 2">POP3 Email</option>
<option label="option2. 3">Messenger </option>
<option label="option2. 4">Newsgroup s</option>
</optgroup>
</select>
</form>
Is there a way that I can have a particular <div> show based on a selection
from this list? I know that you can not directly apply actions to the
options, so it presumably there has to be a javascript method of doing it...
If anyone can point me in the right direction, it would be greatly
appreciated.
Thanks in advance!
|veganeater|
// my apologies for the xpost on comp.lang.java. javascript
Comment