채택완료
register.skin.php 모두선택 질문
Copy
jQuery(function($){
// 모두선택
$("input[name=chk_all]").click(function() {
if ($(this).prop('checked')) {
$("input[name^=agree]").prop('checked', true);
} else {
$("input[name^=agree]").prop("checked", false);
}
});
});
이 코드에서 input[name^=agree] 부분 질문입니다.
^= 가 무슨 뜻인가요?
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
| E[attr^="val"] | "attr" 속성 값이 "val"로 시작되는 "E" 요소를 선택함 |
답변을 작성하려면 로그인이 필요합니다.