Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Unchecking a Radio Button in a Function

Changing a radio button's status from checked to unchecked in a function.

9:58 pm on Nov 25, 2008 (gmt 0)

New User

5+ Year Member

joined:Nov 25, 2008
posts: 1
votes: 0


Thanks for looking into this.

I have JavaScript code that displays or hides a table row when you click a radio button. It works fine. Click the radio button and a row is displayed. Then, click that now-selected radio button and the row is hidden. If you click a different radio, while the first one is still open, the row opened by the first button will hide. But, if you click a radio button to display the row, then click it again to hide it, you can not click the same radio button again to display it again; you have to click a different one. I want to be able to keep clicking the same radio button to display and hide over and over if necessary.

It seems to me that the answer would be to somehow un-check the radio button after hiding it. Please let me know if that is possible, or suggest another solution.

Much Thanks,

10:34 pm on Nov 25, 2008 (gmt 0)

Preferred Member

10+ Year Member

joined:Sept 4, 2002
votes: 0

Not sure I understand what you want to do, but does [radioButton].checked not work?