내가 선택한 모든 체크 박스를 선택하고 싶다면 이것을 할 수있다.체크되지 않은 모든 체크 박스를 찾는다.
$('#mydiv input[type=checkbox]:checked')
선택되지 않은 모든 확인란을 선택할 수있는 비슷한 간단한 구문이 있습니까?
내가 선택한 모든 체크 박스를 선택하고 싶다면 이것을 할 수있다.체크되지 않은 모든 체크 박스를 찾는다.
$('#mydiv input[type=checkbox]:checked')
선택되지 않은 모든 확인란을 선택할 수있는 비슷한 간단한 구문이 있습니까?
안녕의 네 : 데모http://jsfiddle.net/usvrb/
http://api.jquery.com/not-selector/
인용
The .not() method will end up providing you with more readable selections than pushing complex selectors or variables into a :not()
선택 필터. 대부분의 경우 더 나은 선택입니다.
호프가 도움이 되길 바랍니다. :) 건배!
$('#mydiv input[type=checkbox]:not(:checked)')
믿을 수 없습니다.
$('#mydiv input[type=checkbox]').not(':checked')
편집 : 유래 관리, 너트 CAPTCHA와 세드릭? 오늘 모든 답변에서 보안 문자 코드를 입력해야합니까?