populate text box on click of radio button

后端 未结 4 789
醉酒成梦
醉酒成梦 2021-01-26 18:10

I have 3 radio buttons, when one of them is selected I want to automatically put text in a textbox. For example, If the user selected the \'Yes\' radio button, I want the text \

4条回答
  •  长情又很酷
    2021-01-26 18:46

    U have an onclick event so add onclick="function" and in that function u set text... U can get text from radio box with some javascript like that How do I get the text of a radio button (not the value)

提交回复
热议问题