Hi all,
i have a requirement that i have to enable/disable a specific textbox on a form based on the selected value from a combo box.
any help in this regard would be highly appreciated
how to enable/ disable controls on a form
Moderator: General Moderators
-
firdous_kind86
- Forum Newbie
- Posts: 8
- Joined: Wed Oct 07, 2009 5:06 am
Re: how to enable/ disable controls on a form
You can use the "disabled" property of the textarea
Just set it to true.
-
firdous_kind86
- Forum Newbie
- Posts: 8
- Joined: Wed Oct 07, 2009 5:06 am
Re: how to enable/ disable controls on a form
yes but i have to do it on a selection value of a combo box, i mean it would require javascript function
that
if combobox.value =="??" then textarea.disabled = true (sumthing like this)
that
if combobox.value =="??" then textarea.disabled = true (sumthing like this)
Re: how to enable/ disable controls on a form
Yeah, pretty much.
And execute the function with the "onchange" event of the select box.
And execute the function with the "onchange" event of the select box.