글쓰기 항목 체크 채택완료
글 작성할 때 입력하지 않은 항목 있으면 체크해주는 부분 말인데요
input에 required 입력해서 체크하는데 아래처럼 선택해야하는 부분은 체크가 안되더라구요
저런건 어떻게 해야 하나요?
</p>
<p><ul class="request_type_list_2" >
<li>
<input type="radio" name="wr_4" id="select" value="배송"<?php echo ($write['wr_4'] == "배송") ? " checked" : "";?> required> <label for="select" class="c-1">배송</label>
</li>
<li>
<input type="radio" name="wr_4" id="select2" value="상품"<?php echo ($write['wr_4'] == "상품") ? " checked" : "";?> required> <label for="select2" class="c-2">상품</label>
</li>
<li>
<input type="radio" name="wr_4" id="select3" value="대량주문"<?php echo ($write['wr_4'] == "대량주문") ? " checked" : "";?> required> <label for="select3" class="c-2">대량주문</label>
</li>
<li>
<input type="radio" name="wr_4" id="select4" value="기타"<?php echo ($write['wr_4'] == "기타") ? " checked" : "";?> required> <label for="select4" class="c-2">기타</label>
</li>
</ul></p>
<p>
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
채택된 답변
+20 포인트
1년 전
jquery 사용해서 radio 의 체크여부 확인하기
$('input:radio[name=이름]').is(':checked');
결과는 true / false 로 나옴.
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인전체 질문 목록
답변대기
채택
채택
답변대기
채택
답변대기
답변대기
채택
채택
답변대기
답변대기
채택
채택
답변대기
채택
답변대기
채택
답변대기
채택