question: disabling a textarea when a radiobutton is pressed....

TranceSeeker

New Member
Hi all you webspeed pro's Im new to this board!

I have a question, Im still a rookie in webspeed, anyways, here's the question:

I have 6 radiobuttons and if you select ONE (the 6th one), a textarea must be enabled automatically, if you choose another radiobutton, the textarea must be disabled again.

I know I have to put a javascript in my html object (the radiobutton) onFocus or something like that, I dunno....

So, in webspeed something when the request_method = "post" is triggeredI have to write code in enablefields or where and what code.

If anyone can help me Im very happy, tnx in advance..


Many greatings,

TranceSeeker.
 
The following is what you need:

<input type="radio" name="r1" onclick="t1.disabled = true;">

<textarea name="t1">

</textarea>


When you want to enable it again use t1.disabled = false.
 
Back
Top