Click to See Complete Forum and Search --> : Disabling <SELECT></SELECT>


sivaprasad
03-20-2003, 09:28 AM
Hi,

Can anyone tell me how to disable a <SELECT></SELECT> item,ona click of a button.

Thanks in Advance
SP

dabush
03-20-2003, 09:33 AM
<input type=button value="Disable Select" onClick="window.document.formname.selectname.disabled=true;">

sivaprasad
03-20-2003, 09:36 AM
Thanks for your quick response..,
Is there any way that i can Hide it and show/Display it on a click of a button...,

Regards
SP

sivaprasad
03-20-2003, 10:09 AM
Hi,

How can i do the Show and Hide of a <SELECT> ona click of a button?

Thanks in Advance
SP

pyro
03-20-2003, 10:42 AM
Try:

<input type="button" value="Hide Select" onClick="document.formname.selectname.style.visibility=hidden;">

pyro
03-20-2003, 10:44 AM
Don't start new threads on the same topic:.

dabush
03-20-2003, 06:53 PM
whoa, dave. u got some super cool stuff u can do as moderator.

sivaprasad
03-21-2003, 06:43 AM
Hi,
<input type="button" value="Hide Select" onClick="document.formname.selectname.style.visibility=hidden;">
the above statement doesnt work..,

and Dave..,Can you tell me the code how to do that,i dont have time to go through the site you mentioned...,

Thanks


SP