![]() Topic awaiting preservation: Show 'city drop box' if country = Spain (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
![]() 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 |
![]() 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 |
![]() Ah the double drop down menu. I always go here for my DDDM needs: |
Nervous Wreck (II) Inmate From: West Bloomfield MI |
![]() put it in a div set to display:none |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
![]() Cool links Emps!! but for this simple form, I'm using the fizgig method. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() Modify your function to look like this: |
Nervous Wreck (II) Inmate From: West Bloomfield MI |
![]() 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 |
![]() Yeah, Worked cool! |