Click to See Complete Forum and Search --> : set textbox visible and active?


digital_storm
10-28-2003, 09:31 AM
Hello!

I've got a combobox with a couple of choices (Studying, working, etc) what I want to do is: if "working" is selected I want to have a textfield/box set visible (It should not be visible else) so you can write what you are working with in it. Is that possible?
If yes how do I implement it?

Thanks for your help.

Khalid Ali
10-28-2003, 07:27 PM
yes its very much possible and fairly simple,
get the selectedIndex from the listbox options,
and based upon the value

if(a)
show the text field
else
shoe other thext filed

digital_storm
10-29-2003, 06:41 AM
Hello!

Thanks for your answer.
What I was wondering was how do I write it,
Do I have to use layers (setVisible) or can I use ordinary html?

How will the script look like?

Regards// digital_storm