Closed Thread Icon

Topic awaiting preservation: Dynamic <select> (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=21751" title="Pages that link to Topic awaiting preservation: Dynamic &amp;lt;select&amp;gt; (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Dynamic &lt;select&gt; <span class="small">(Page 1 of 1)</span>\

 
marf
Bipolar (III) Inmate

From: Canada
Insane since: Oct 2001

posted posted 05-11-2004 03:51

I want to use an html <select> with two <options>

However, when the user selects the first <option>

It makes another <select> and option menu appear


otherwise if they select the second <option>

then a different <select> and option menu appear.


So Basically. There is one visible drop down box. They select from one of two options, depending on which option they select, it makes a new drop down box appear.

How would I do this. Can anybody point me to a tutorial? I believe it has to use javascript, but im not sure.

Thanks

Marf

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 05-11-2004 15:12

This looks like a job for....The Javascript Forum!


Justice 4 Pat Richard

MajorFracas
Nervous Wreck (II) Inmate

From:
Insane since: Jul 2003

posted posted 05-11-2004 15:33

Javascript is definitely what you'll need for this job.

What you are asking is not too difficult. With a moderate understanding of Javascript, I believe you could figure this out.

To that end, try the tutorials at The Gurus Network.

Or you could Google for Javascript tutorials.

I think once you've read up and experimented some, you'll be able to figure it out.

Here's a hint: you'll probably want to use the 'onChange' event for your first <select>

Here's another: you could use visibility=hidden or display=none on your second or third <select>s. One is better for what you want to do. Do you know which one?

Good Luck!

« BackwardsOnwards »

Show Forum Drop Down Menu