Forums
This topic is locked
List Box
Posted 19 Jan 2007 03:52:57
1
has voted
19 Jan 2007 03:52:57 Dennis Pawlicki posted:
I'm not sure if this is the correct forum or not....I have a website that I developed using Dreamweaver MX.
On one page I have list boxes with dollar amounts listed ($5, $10, etc.).
On the last entry in the list box I would like to have it say "other", and the user could click on it
and manually enter an amount that is not included in the list box.
For example the highest amount in the list box is $50, and the user wants to enter $100.
I know I've seen this done before, but I've been Googling for a few days and haven't
come up with anything.
thanks.
Replies
Replied 19 Jan 2007 17:58:01
19 Jan 2007 17:58:01 Alan C replied:
One way to do it . . .
You could make that last item in your select box say Other, AND have a separate text field nearby with a label like "amount if other", then when you process the inputs of the server you can look at the value of the select, if it is Other you take the amount from the separate text field.
Using Javascript I think you would be able to activate the textfield when the select item was other, sorry I am not good with Javascript
You could make that last item in your select box say Other, AND have a separate text field nearby with a label like "amount if other", then when you process the inputs of the server you can look at the value of the select, if it is Other you take the amount from the separate text field.
Using Javascript I think you would be able to activate the textfield when the select item was other, sorry I am not good with Javascript