Topic awaiting preservation: Show 'city drop box' if country = Spain (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 11-01-2002 09:36
How can I make a drop down box shows when in another drop down box is selected 'spain' without opening or sending to another page? |
Bipolar (III) Inmate From: Amsterdam |
posted 11-01-2002 15:03
Well, in any case you should use an event handler like onchange to check whether the item 'Spain' has been selected, and if it turns out to be 'Spain', you could do several things. You could dynamically add a select box through createNode() and add it to your document, or you could switch the visibility of the second select box. I guess that depends on what you regard to as better coding. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-01-2002 15:04
Ah the double drop down menu. I always go here for my DDDM needs: |
Nervous Wreck (II) Inmate From: West Bloomfield MI |
posted 11-01-2002 15:05
put it in a div set to display:none |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 11-02-2002 10:00
Cool links Emps!! but for this simple form, I'm using the fizgig method. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 11-02-2002 11:52
Modify your function to look like this: |
Nervous Wreck (II) Inmate From: West Bloomfield MI |
posted 11-04-2002 16:46
yeah, replace DIV with the name of the div, like you replaced form and select with those names |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 11-04-2002 17:53
Yeah, Worked cool! |