Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 문자열자르기
- ubuntu
- replace
- Eclipse
- RabbitMQ
- 천단위
- php
- Postfix
- JavaScript
- Oracle
- i18n
- 일괄변경
- TextBox
- Selectbox
- 한글 깨짐
- yum
- random
- smarty
- 확장자
- install
- SVN
- Python
- centos
- mariadb
- docker
- 부모창
- jQuery
- TPL
- MySQL
Archives
- Today
- Total
wilson's story
jquery 체크박스 전체 선택 및 전체 해제 본문
반응형
jquery javascript
/** * 목적 : 체크박스 전체 선택 * 매개변수 : 없음 * 반환값 : 없음 * 개정이력 : 없음 */ $("#check_all").click(function(){ if ($(this).attr("checked") == true) { $("input[name=checks[]]").attr("checked", true); } else { $("input[name=checks[]]").attr("checked", false); } }); // 세부를 별도로 선택하면 전체 체크가 풀림 $("$input[name=checks[]]").click(function(){ $("input[name=check_all]").attr("checked", false); });html
전체
세부
반응형