write에서 agree 체크하기 채택완료
초초동
7년 전
조회 2,477
write에서 agree가 checked됐는지 안됏는지..
</p>
<p><form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" ></p>
<p>생략</p>
<p><input type="checkbox" class="css-checkbox lrg" name="agree" id="agree" /><label for="agree" class="css-label lrg klaus">개인정보 수집 및 이용에 대해 동의합니다.</label>
</p>
<p>생략</p>
<p></form></p>
<p><script>
function fwrite_submit(f)
{
if (!f.agree.checked=="") {
alert("약관 내용에 동의해주세요.");
f.agree.focus();
return false;
}
}
</script></p>
<p>
로 했는데 안되는데 ...
왜그럴까요 ㅠ
댓글을 작성하려면 로그인이 필요합니다.
답변 3개
답변을 작성하려면 로그인이 필요합니다.
로그인