선택
이효...","url":"https://sir.kr/boards/program/18886","author":{"@type":"Person","name":"senseme","url":"https://sir.kr/profile/fd8d8956-5b99-4cbc-9e08-367f8488486f"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":8}],"datePublished":"2013-03-31T15:32:25+09:00","dateModified":"2015-04-13T14:19:55+09:00","comment":[{"@type":"Comment","text":"감솨","author":{"@type":"Person","name":"쉽다zzz"},"datePublished":"2013-04-01T20:53:42+09:00"},{"@type":"Comment","text":"감사합니다^^","author":{"@type":"Person","name":"senseme"},"datePublished":"2013-04-05T01:37:08+09:00"},{"@type":"Comment","text":"잘봤습니다-","author":{"@type":"Person","name":"TT07"},"datePublished":"2013-04-03T17:19:09+09:00"},{"@type":"Comment","text":"감사합니다^^","author":{"@type":"Person","name":"senseme"},"datePublished":"2013-04-05T01:37:15+09:00"},{"@type":"Comment","text":"좋은 팁이네요~","author":{"@type":"Person","name":"쉽다zzz"},"datePublished":"2013-04-04T09:39:46+09:00"},{"@type":"Comment","text":"감사합니다^^","author":{"@type":"Person","name":"senseme"},"datePublished":"2013-04-05T01:37:21+09:00"},{"@type":"Comment","text":"감사합니다. ~","author":{"@type":"Person","name":"takumi22"},"datePublished":"2013-06-01T14:40:46+09:00"},{"@type":"Comment","text":"on이 함께 넘어오는데 제거 할 수 있나요?","author":{"@type":"Person","name":"지로쿨"},"datePublished":"2015-04-13T14:19:55+09:00"}]}
s

체크박스 전체선택/해제/반전

<script type="text/JavaScript">
function chkBox(bool) { // 전체선택/해제
var obj = document.getElementsByName("chk[]");
for (var i=0; i<obj.length; i++) obj[i].checked = bool;
}
function revBox() { // 전체반전
var obj = document.getElementsByName("chk[]");
for (var i=0; i<obj.length; i++) obj[i].checked = !obj[i].checked;
}
</script>

<table border=1>
<tr bgcolor=#efefef>
<td><INPUT type=checkbox onclick=chkBox(this.checked)> 선택</td>
</tr>
<tr><td><INPUT type=checkbox name=chk[] value=100> 이효리</td></tr>
<tr><td><INPUT type=checkbox name=chk[] value=200> 성유리</td></tr>
<tr><td><INPUT type=checkbox name=chk[] value=300> 이진</td></tr>
<tr><td><INPUT type=checkbox name=chk[] value=400> 옥주현</td></tr>
</table>

<INPUT type=button value="전체반전" onclick=revBox()>

|

댓글 8개

좋은 팁이네요~
on이 함께 넘어오는데 제거 할 수 있나요?
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
12년 전 조회 9,002
12년 전 조회 3,528
12년 전 조회 3,313
12년 전 조회 3,388
12년 전 조회 3,938
12년 전 조회 2,001
12년 전 조회 5,121
12년 전 조회 2,766
12년 전 조회 7,881
12년 전 조회 2,399
12년 전 조회 2,399
12년 전 조회 2,456
12년 전 조회 2,067
12년 전 조회 4,315
12년 전 조회 2,842
12년 전 조회 2,879
12년 전 조회 2,413
12년 전 조회 4,066
12년 전 조회 3,074
12년 전 조회 1,842
12년 전 조회 4,927
12년 전 조회 2,419
12년 전 조회 2,192
12년 전 조회 2,598
12년 전 조회 6,934
12년 전 조회 2,562
12년 전 조회 4,163
12년 전 조회 3,632
12년 전 조회 1,864
12년 전 조회 4,313
12년 전 조회 2,789
12년 전 조회 2,707
12년 전 조회 2,754
12년 전 조회 4,660
12년 전 조회 3,454
12년 전 조회 5,093
12년 전 조회 9,949
12년 전 조회 5,554
12년 전 조회 5,148
12년 전 조회 2,722
12년 전 조회 2,806
12년 전 조회 4,546
12년 전 조회 5,378
12년 전 조회 5,785
12년 전 조회 2,977
12년 전 조회 2,699
12년 전 조회 2,325
12년 전 조회 2,347
12년 전 조회 4,117
12년 전 조회 4,133
12년 전 조회 2,663
12년 전 조회 4,218
12년 전 조회 2,666
12년 전 조회 9,741
12년 전 조회 2,963
12년 전 조회 5,159
12년 전 조회 7,784
12년 전 조회 2,959
12년 전 조회 4,256
12년 전 조회 1,975
12년 전 조회 2,649
12년 전 조회 2,517
12년 전 조회 2,692
12년 전 조회 4,690
12년 전 조회 2,487
12년 전 조회 3,204
12년 전 조회 2,634
12년 전 조회 2,311
12년 전 조회 2,759
12년 전 조회 3,494
12년 전 조회 2,723
12년 전 조회 2,522
12년 전 조회 3,079
12년 전 조회 1.6만
12년 전 조회 2,352
12년 전 조회 2,159
12년 전 조회 3,959
12년 전 조회 1만
12년 전 조회 2,519
12년 전 조회 2,464
12년 전 조회 2,907
12년 전 조회 2,366
12년 전 조회 2,540
12년 전 조회 4,795
12년 전 조회 2,745
12년 전 조회 3,407
12년 전 조회 2,393
12년 전 조회 2,571
12년 전 조회 4,291
13년 전 조회 2,139
13년 전 조회 2,635
13년 전 조회 2,943
13년 전 조회 3,389
13년 전 조회 3,496
13년 전 조회 3,934
13년 전 조회 2,392
13년 전 조회 2,415
13년 전 조회 5,789
13년 전 조회 2,843
13년 전 조회 3,027