Forum Moderators: open

Message Too Old, No Replies

Dynamically change the text of radio buttons

Dynamically change the text of radio buttons

         

gageller

1:39 pm on Apr 6, 2006 (gmt 0)

10+ Year Member



Hi All,

Is there a way to change the display text of a radio button depending on what the user selects in a Select Box?
I want to do it on the Select onChange event, but I am not sure how to do it.

Any help would be greatly appreciated.

Thank you in advance.

Greg

Mohsen

12:05 pm on Apr 9, 2006 (gmt 0)

10+ Year Member



change innerHTML property of the radio button object. FF does not have innerText (instead it has textContent), so use innerHTML. Read option text also using innerHTML.

gageller

1:04 pm on Apr 10, 2006 (gmt 0)

10+ Year Member



Thank you for the suggestion. I will give it a try.