Click to See Complete Forum and Search --> : form element auto appear


jacquesy007
02-15-2003, 06:43 PM
I have created a form that has a yes and no select element.

I want to enhance this form whereby when the user chooses yes a text element automatically appears to allow the user to write some information, but if no is choosen then nothing happens.

How would I do this?? Can anybody point me in the direction where this has been done?

Thnaks!

khalidali63
02-15-2003, 07:49 PM
Check this out

http://68.145.35.86/skills/javascripts/ShowHideFormElement.html


cheers

Khalid

jacquesy007
02-16-2003, 11:50 AM
ok, this is working but I want to apply it to a select drop down element, I have tried to get this working using the code you gave me but no joy.

I also want to make the text that describles the text box visable and hidden along with it?

Thanks.

jacquesy007
02-17-2003, 09:53 AM
Thanks Dave, this works great!

One final thing, I have tried to manipulate this so that the select list includes a blank option at the top with no value or label, but it I did this it messed everything up!

Thanks!