안녕하세요 질문좀드리겠습니다
폼메일을 하나 만들고있는데요
이메일은 작성안될시 빨간색부분처럼 하면 이메일을 입력해주세요 라고나오는데요
만약에 이게 체크박스일때는 어떻게 해야할까요 ㅠㅠ?
체크박스는 아래 이메일을 입력해주세요 라구 어찌해야할지 모르겠네요
<input type="checkbox" name="bt" value="bt" id="bt" style="margin-left:15px;margin-top:5px;">
if (!f.email1.value) {
alert("이메일을 입력해주세요");
f.email1.focus();
return false;
}
<tr>
<th scope="row">이메일</th>
<td><input type="text" name="email" size="10" style="ime-mode:disabled"> @
<input type="text" name="email1" size="10" style="ime-mode:disabled">
</td>
</tr>
|
답변 2개
채택된 답변
+20 포인트
답변을 작성하려면 로그인이 필요합니다.