This should be easy but I can't figure it out. I have a radio button with a 
variable number of entries and I pass the selected value into a cfwindow. When 
I am done and I close the window, I want to deselect the chosen radio button so 
the user does not think that the button is still selected.

I am running the deselect code from the cfwindow and the radio button is on the 
underlying page. 

When I use the statement 
document.getElementById("TheGuest").checked = false;
it only deselects the button if it is the first one in the list.

I have tried using document.all.TheGuest.length to get the number of entries 
but this creates a JS error (can't see what it is in Firebug). I've also tried 
to come up with variations that use array notation like [1] or to find 
something that will simply deselect the button regardless of which element is 
selected, but I can't get anything to work.

A bit of help would be greatly appreciated. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330102
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to