답변 2개
채택된 답변
+20 포인트
Copy
<script>
function text_in(val) {
document.getElementById('memo').value = val;
}
</script>
<input type="radio" name="test" value="test1" onclick="text_in(this.value)"> test1
<input type="radio" name="test" value="test2" onclick="text_in(this.value)"> test2
<input type="radio" name="test" value="test3" onclick="text_in(this.value)"> test3
<br><br>
<textarea id="memo"></textarea>
답변을 작성하려면 로그인이 필요합니다.