via JS, you can loop over the radio button array, and set each one to
selected = false...
depending on your business rules, you may to do some validation to ensure
that if they don't enter something for "other", one of the radio buttons
gets re-selected.
<script type="text/javascript">
function clearRadios() {
var myRadios = document.getElementById('myForm').myRadio;
for (var i=0; i<myRadios.length; i++) {
myRadios[i].checked = false;
}
}
</script>
<form id="myForm" name="myForm">
<input type="radio" name="myRadio" id="radioA" value="a"
checked="checked" /> A<br />
<input type="radio" name="myRadio" id="radioB" value="b" /> B<br />
<input type="radio" name="myRadio" id="radioC" value="c" /> C<br />
<input type="radio" name="myRadio" id="radioD" value="d" /> D<br />
<br />
Other: <input type="text" onfocus="clearRadios();" />
</form>
On Thu, Aug 14, 2008 at 11:34 AM, Steve LaBadie <[EMAIL PROTECTED]>wrote:
> I want to know if it is possible to take focus off of a radio button if
> someone selects a text box if it shares the same radio button label?
>
>
>
>
>
> O A
>
> O B
>
> O C
>
> O D
>
> Other ____________
>
>
>
> Steve LaBadie, Web Manger
>
> East Stroudsburg University
>
> 200 Prospect St.
>
> East Stroudsburg, Pa 18301
>
> 570-422-3999
>
> http://www.esu.edu
>
> [EMAIL PROTECTED]
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311015
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4