1
저는 자바 초보자이며 텍스트 상자에 텍스트를 입력 할 때 활성화해야하는 동적 웹 단추를 만들려고합니다.동적 개체를 사용할 수 없음
아래 코드는 있지만 편집 상자에 텍스트를 입력하면 버튼이 활성화되지 않습니다.
누구나 친절하게 도와 드릴 수 있습니까?
<html>
<form>
<input onkeyup="EnableThis(this, document.getElementsByName('btnReplayType')[0])"name="txtReplayType" size="20" type="text"/>
<input onclick="alert(document.getElementsByName('txtReplayType')[0].value)" disabled="65535" name="btnReplayType" size="20" type="button" value="Type and enable me" />
</form>
</html>