<tr>
<th scope="row"><label for="wr_5">정가/할인율<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_5" class="box" value="<?php echo $wr_5 ?>" id="wr_5" required class="frm_input required" size="20" maxlength="20"> x
<input type="text" name="wr_6" class="box" value="<?php echo $wr_6 ?>" id="wr_6" required class="frm_input required" size="10" maxlength="20"> %</td>
</tr>
<script>
$(".box").onkeypress(function(){
var result=$("input[name='wr_5']").val()+$("input[name='wr_6']").val();
$("input[name='wr_7'].val(result);//
});
</script>
<tr>
<th scope="row"><label for="wr_7">할인가<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_7" value="<?php echo $wr_7 ?>" id="wr_7" class="box" required class="frm_input required" size="10" maxlength="20"></td>
</tr>
5 번 6 번 값을 더해서 7번에 바로 보여주기 하고 싶은데요. 저렇게 해봤는데 안되서요.
게시글 목록
| 번호 | 제목 |
|---|---|
| 8501 | |
| 8496 | |
| 8494 | |
| 8492 | |
| 8476 | |
| 8473 | |
| 8459 | |
| 8458 | |
| 8456 | |
| 8451 | |
| 8448 | |
| 8430 | |
| 8429 | |
| 8416 | |
| 8402 | |
| 8396 | |
| 8393 | |
| 8388 | |
| 8387 | |
| 8382 | |
| 8375 | |
| 8360 | |
| 8358 | |
| 8357 | |
| 8354 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기