Forum Moderators: open

Message Too Old, No Replies

Drop Down menu Selection -generate new text field.

Based on teh selction made in the drop down..

         

shawn

7:29 pm on Dec 22, 2003 (gmt 0)

10+ Year Member



I have a form that is for cancelations...I would like based on the selction mde to have a new text field generated for the user to describe exactly the problem encountered.

Does anyone know a good java script for this?

Purple Martin

1:22 am on Dec 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The easy solution is to have a text field there all the time. You always want to know why they're cancelling, right?

OK. When the user selects something from the list, use the onChange event to call a function. The function could either set the innerHTML property of a previously empty span to fill the span with a text field, or it could show a hidden div containing the text field.