Discussion Locked

Radio Buttons & Text Buttons

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a form with several textboxes with radio buttons. I have everything working the way I need to except for when the textbox is clicked I want the radio button to show it is checked. I have it working vice versa and once one item is checked the one previously checked is unchecked.

3 replies

by allenhunter

If you change the names of the radio buttons so that they are unique, you can then easily change their checked status with the onfocus and onblur events of the text boxes. Add the following code to the textbox tags...

onfocus="document.formname.Chk_field1.checked='checked'"
onblur="document.formname.Chk_field1.checked=''"

Make sure to change the names where appropriate.

This discussion is closed to new replies.