Welcome to WebmasterWorld Guest from 54.196.238.210

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.

     

LBillingsley

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

5+ Year Member



Hello,

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,
Lewis

garann

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

10+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month