오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
<script type="text/javascript">
function is_point(val) {
if (val == '1') {
$(".cash_unit").css("display", "none");
$(".point_unit").css("display", "inline");
}
else if (val == '0') {
$(".cash_unit").css("display", "inline");
$(".point_unit").css("display", "none");
}
}
</script>
<tr>
<td class=wt>결제방법</td>
<td><select name="pr_use_point" onchange="is_point(this.value)" class="sel w100">
<option value=""> </option>
<option value="0"> 사이버캐쉬 </option>
<option value="1"> 포인트 </option>
<select>
<script type="text/javascript">
$(document).ready(function () {
fwrite.pr_use_point.value = "<?=$product[pr_use_point]?>";
is_point("<?=$product[pr_use_point]?>");
});
</script>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#101010></td></tr>
위 코드를 보시면 셀렉트박스로 사이버캐쉬 & 포인트를 선택하도록 되어있습니다.
그냥 무시하고 체크박스 히든으로 숨기고 포인트로 자동 선택되어 있게끔 하고 싶습니다.
어떻게하면 되는지요 도움 부탁드립니다......
하루종일 이거만 잡고 씨름하고 잇네요 ㅡㅜ;;;;;;;;
오류 주소 :
<script type="text/javascript">
function is_point(val) {
if (val == '1') {
$(".cash_unit").css("display", "none");
$(".point_unit").css("display", "inline");
}
else if (val == '0') {
$(".cash_unit").css("display", "inline");
$(".point_unit").css("display", "none");
}
}
</script>
<tr>
<td class=wt>결제방법</td>
<td><select name="pr_use_point" onchange="is_point(this.value)" class="sel w100">
<option value=""> </option>
<option value="0"> 사이버캐쉬 </option>
<option value="1"> 포인트 </option>
<select>
<script type="text/javascript">
$(document).ready(function () {
fwrite.pr_use_point.value = "<?=$product[pr_use_point]?>";
is_point("<?=$product[pr_use_point]?>");
});
</script>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#101010></td></tr>
위 코드를 보시면 셀렉트박스로 사이버캐쉬 & 포인트를 선택하도록 되어있습니다.
그냥 무시하고 체크박스 히든으로 숨기고 포인트로 자동 선택되어 있게끔 하고 싶습니다.
어떻게하면 되는지요 도움 부탁드립니다......
하루종일 이거만 잡고 씨름하고 잇네요 ㅡㅜ;;;;;;;;
댓글 3개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기