게시판에 넣을껀데 고수님들 좀 봐주세요. 정보
게시판에 넣을껀데 고수님들 좀 봐주세요.본문
댓글 전체
document.getElementById 같은 객체접근방법을 잘 활용해보세요.
제가 초보라서 어떻게 활용해야 될지 막막하네요 ㅠ.ㅠ
예)
제품명의 첫번째 두번재 텍스트박스 에 100 200 입력하면 오른쪽칸에 합 나오게 하기~
<input type=text name=product01 onkeyup="calcul()">이건 첫번째
<input type=text name=product02 onkeyup="calcul()">이건 두번째
<input type=text name=productSum >이건 오른쪽칸이라고 하면
스크립트를 추가합니다 펑션명은 calcul 이 되겠죠~
<script>
function calcul(){
var f = document.fwrite;
f.productSum.value = f.product01.value + f.product02.value;
}
</script>
위의 스크립트는 두개일때입니다 4개면 두개더 추가하면되겠죠 공부해보세욤
제품명의 첫번째 두번재 텍스트박스 에 100 200 입력하면 오른쪽칸에 합 나오게 하기~
<input type=text name=product01 onkeyup="calcul()">이건 첫번째
<input type=text name=product02 onkeyup="calcul()">이건 두번째
<input type=text name=productSum >이건 오른쪽칸이라고 하면
스크립트를 추가합니다 펑션명은 calcul 이 되겠죠~
<script>
function calcul(){
var f = document.fwrite;
f.productSum.value = f.product01.value + f.product02.value;
}
</script>
위의 스크립트는 두개일때입니다 4개면 두개더 추가하면되겠죠 공부해보세욤