var fm = document.frmAGS_pay;
var checkValueList="";
var nIndex = 0;
$("input:checkbox[name^=wr_8_5]").each(function(){
if($(this).is(":checked")){
checkValueList = $("input:checkbox[name^=wr_8_5]").eq(nIndex).val() + "|";
}
nIndex++;
});
document.getElementById("Amt").value = checkValueList;
alert(checkValueList);
>> 제이쿼리로 해보다가 안되서 올립니다~~~ 자바스크립트로 도와주시면 감사하겠습니다 ㅠㅠ
<input type="radio" name=wr_8_5 itemname="상담기간" value="3개월" <?if($wr_8_5 == "3개월") echo "checked"?>>3개월
<input type="radio" name=wr_8_5 itemname="상담기간" value="6개월" <?if($wr_8_5 == "6개월") echo "checked"?>>6개월
<input type="radio" name=wr_8_5 itemname="상담기간" value="9개월" <?if($wr_8_5 == "9개월") echo "checked"?>>9개월
<input type="radio" name=wr_8_5 itemname="상담기간" value="12개월" <?if($wr_8_5 == "12개월") echo "checked"?>>12개월
이값 중에 하나 값이 체크 되면 그체크된 값은 가격을 결제모듈 가격에 넣어야 하는데
라디오 1번째 값 벨류만 들어가는거보니 포문을 안돌려서 그러나봅니다~~
여차하다가 제이쿼리로해볻다가 안되서 올립니다~~ ㅠㅠ
var checkValueList="";
var nIndex = 0;
$("input:checkbox[name^=wr_8_5]").each(function(){
if($(this).is(":checked")){
checkValueList = $("input:checkbox[name^=wr_8_5]").eq(nIndex).val() + "|";
}
nIndex++;
});
document.getElementById("Amt").value = checkValueList;
alert(checkValueList);
>> 제이쿼리로 해보다가 안되서 올립니다~~~ 자바스크립트로 도와주시면 감사하겠습니다 ㅠㅠ
<input type="radio" name=wr_8_5 itemname="상담기간" value="3개월" <?if($wr_8_5 == "3개월") echo "checked"?>>3개월
<input type="radio" name=wr_8_5 itemname="상담기간" value="6개월" <?if($wr_8_5 == "6개월") echo "checked"?>>6개월
<input type="radio" name=wr_8_5 itemname="상담기간" value="9개월" <?if($wr_8_5 == "9개월") echo "checked"?>>9개월
<input type="radio" name=wr_8_5 itemname="상담기간" value="12개월" <?if($wr_8_5 == "12개월") echo "checked"?>>12개월
이값 중에 하나 값이 체크 되면 그체크된 값은 가격을 결제모듈 가격에 넣어야 하는데
라디오 1번째 값 벨류만 들어가는거보니 포문을 안돌려서 그러나봅니다~~
여차하다가 제이쿼리로해볻다가 안되서 올립니다~~ ㅠㅠ
댓글 2개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기