답변 2개
채택된 답변
+20 포인트
7년 전
대충 만들어봤습니다^^
</p>
<p><html>
<head>
<script>
function auto_surtax(){
var surtax_rate = 0.1;
var f = document.test_frm;
var input_val = f.test_expense.value;
if(f.test_check.checked == true){
f.test_supply.value = Math.round(input_val * (1 - surtax_rate));
f.test_surtax.value = Math.round(input_val * surtax_rate);
}else{
f.test_supply.value = input_val;
f.test_surtax.value = "";
}
}
</script>
</head>
<body>
<form name="test_frm">
현월납부지출액
<input type="text" name="test_expense" onKeyup="auto_surtax()"></p>
<p> <input type="checkbox" name="test_check" id="test_check" onChange="auto_surtax()">
<label for="test_check">VAT포함</label></p>
<p> 공급가액
<input type="text" name="test_supply" readonly></p>
<p> 부가세
<input type="text" name="test_surtax" readonly>
</form>
</body>
</html></p>
<p>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 4개
a
aaab
7년 전
감사합니다ㅠㅠㅠ 배모씨님 혹시 다른질문을 해도되나요?메일로 보내드려도될까요?
�
배모씨
7년 전
다른부분은 이 게시판에 올려주시면 답변 드릴게요^^
a
aaab
7년 전
파일을 첨부해야할것같아서요ㅠㅠ
�
배모씨
7년 전
직접 남기신 글에 댓글 남겨놓았습니다^^
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인