Forum Moderators: open

Message Too Old, No Replies

Radiogroup problem.

         

gosman

8:12 pm on Nov 8, 2004 (gmt 0)

10+ Year Member



I have a textbox on a form. If text is entered into this box I want a radiogroup on the same form to be unchecked? The radio group consists of 4 radio buttons.

Please help!

DrDoc

10:08 pm on Nov 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Without some additional information (such as a brief example of the form you're working with) it's impossible for us to help you find the exact solution. Also, it would help to know what you have tried so far...

gosman

11:02 pm on Nov 9, 2004 (gmt 0)

10+ Year Member



Sorry.

I should have been a bit more specific. I have included an example below.

What I am trying to acheive is when the textbox is focused any radio that is checked wil become unchecked.

<form name="myform">
<p><input type="radio" value="1" name="rg" id="one" checked>a</p>
<p><input type="radio" value="2" name="rg" id="two">a</p>
<p><input type="radio" value="3" name="rg" id="three">c<br>
<input type="text" name="T2" size="20" onfocus="document.myform.all.checked='false'"></p>
</form>