This is a discussion on "Dropdown Problem" within the JavaScript Forum section. This forum, and the thread "Dropdown Problem are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Dropdown Problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Dropdown Problem
Hi
I`m trying to create a dropdown which if the value "for sale" is selected a text box appears to ask for the asking price, if any other value is selected the text box stays hidden. Can anyone help with this? Many thanks Lee |
|
|
|
|||
|
Re: Dropdown Problem
You need to use css to initially hide the text box. Then you need an 'onchange' JavaScript function associated with the selection box. When the value in it changes, the function is called which checks the value of your selection. If it's 'for sale', then change the css visibility parameter of your text box so that it becomes visible. Remember to allow for the user going back and changing their mind so your function has to also be capable of hiding it again. |
![]() |
| Tags |
| dropdown, problem |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help with this Dropdown Content | Maska | JavaScript Forum | 7 | Sep 21st, 2007 16:44 |
| menu, dropdown | everland | Flash & Multimedia Forum | 2 | Aug 21st, 2007 14:58 |
| Dropdown lists | psrujan | JavaScript Forum | 1 | Jun 30th, 2007 22:37 |
| CSS dropdown menu problem in IE | Tino | Web Page Design | 2 | Jun 3rd, 2007 08:48 |
| Dropdown menu | Jorgerb | Flash & Multimedia Forum | 6 | May 17th, 2005 08:29 |