0
나는 다음과 같은 텍스트 필드를 가지고 라디오 버튼 그렇지 않으면 사용하지 않아야 클릭 할 때 나는 그것을 사용하려면 :라디오 버튼 기반 HTML을 사용하지 않도록 설정하는 방법은 무엇입니까?
function Chosen4() if (document.getElementById('rbothers4').checked == true) {
message += " (Others)"
document.getElementById("cbotherstext4").setAttribute("disabled", true);
}
그리고 HTML 코드가 여기
<input type="radio" name="Promised" id="rbothers4" onclick="displayResult(this.value)" value="Yes6" >c. Others
(Please Specify)
<input id="cbotherstext4" type="text" /> </td>
<input type="button" id="Button4" onclick="Chosen4()" value="Date Promised"/>