선택
이효...","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,008
12년 전 조회 3,532
12년 전 조회 3,319
12년 전 조회 3,396
12년 전 조회 3,941
12년 전 조회 2,003
12년 전 조회 5,124
12년 전 조회 2,774
12년 전 조회 7,886
12년 전 조회 2,405
12년 전 조회 2,403
12년 전 조회 2,462
12년 전 조회 2,073
12년 전 조회 4,318
12년 전 조회 2,846
12년 전 조회 2,884
12년 전 조회 2,417
12년 전 조회 4,070
12년 전 조회 3,081
12년 전 조회 1,850
12년 전 조회 4,934
12년 전 조회 2,424
12년 전 조회 2,196
12년 전 조회 2,601
12년 전 조회 6,937
12년 전 조회 2,570
12년 전 조회 4,169
12년 전 조회 3,635
12년 전 조회 1,872
12년 전 조회 4,316
12년 전 조회 2,796
12년 전 조회 2,714
12년 전 조회 2,763
12년 전 조회 4,667
12년 전 조회 3,463
12년 전 조회 5,102
12년 전 조회 9,959
12년 전 조회 5,565
12년 전 조회 5,155
12년 전 조회 2,736
12년 전 조회 2,815
12년 전 조회 4,555
12년 전 조회 5,386
12년 전 조회 5,788
12년 전 조회 2,988
12년 전 조회 2,702
12년 전 조회 2,336
12년 전 조회 2,351
12년 전 조회 4,125
12년 전 조회 4,141
12년 전 조회 2,667
12년 전 조회 4,221
12년 전 조회 2,668
12년 전 조회 9,746
12년 전 조회 2,971
12년 전 조회 5,163
12년 전 조회 7,788
12년 전 조회 2,965
12년 전 조회 4,263
12년 전 조회 1,981
12년 전 조회 2,656
12년 전 조회 2,527
12년 전 조회 2,697
12년 전 조회 4,698
12년 전 조회 2,494
12년 전 조회 3,210
12년 전 조회 2,638
12년 전 조회 2,315
12년 전 조회 2,762
12년 전 조회 3,504
12년 전 조회 2,727
12년 전 조회 2,528
12년 전 조회 3,087
12년 전 조회 1.6만
12년 전 조회 2,359
12년 전 조회 2,167
12년 전 조회 3,967
12년 전 조회 1만
12년 전 조회 2,525
12년 전 조회 2,471
12년 전 조회 2,911
12년 전 조회 2,372
12년 전 조회 2,543
12년 전 조회 4,803
12년 전 조회 2,754
12년 전 조회 3,413
12년 전 조회 2,402
12년 전 조회 2,576
12년 전 조회 4,303
13년 전 조회 2,146
13년 전 조회 2,642
13년 전 조회 2,951
13년 전 조회 3,395
13년 전 조회 3,502
13년 전 조회 3,947
13년 전 조회 2,403
13년 전 조회 2,419
13년 전 조회 5,799
13년 전 조회 2,855
13년 전 조회 3,031