{"id":798,"date":"2003-04-07T01:03:44","date_gmt":"2003-04-07T01:03:44","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=798"},"modified":"2003-04-07T01:03:44","modified_gmt":"2003-04-07T01:03:44","slug":"%ec%b2%b4%ed%81%ac%eb%b0%95%ec%8a%a4checkbox-%ea%b7%b8%eb%a3%b9-%ec%b2%b4%ed%82%b9","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=798","title":{"rendered":"\uccb4\ud06c\ubc15\uc2a4(checkbox) \uadf8\ub8f9 \uccb4\ud0b9"},"content":{"rendered":"<p>\uc774\ubbf8 \uadf8\ub8f9 \uccb4\ud0b9\uc5d0 \ub300\ud55c \ub9ce\uc740 \ud574\ubc95\uc774 \ub098\uc654\ub294\ub370, form.elements[&#8216;chk[]&#8217;].length \ubc29\uc2dd\uc744 \uc0ac\uc6a9\ud55c \uac83\uc740 \uc5c6\ub354\uad70\uc694. mozilla1.3, IE5.0\uc5d0\uc11c \ud14c\uc2a4\ud2b8\ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ub450\uac00\uc9c0 \uadf8\ub8f9 \uccb4\ud0b9 \ubaa8\ub4dc\ub97c \uc9c0\uc6d0\ud558\ub294\ub370, \ud558\ub098\ub294 \uc77c\ubc18\uc801\uc778 [\uc804\uccb4\uc120\ud0dd\/\uc804\uccb4\ud574\uc81c](chkAll)\uc774\uace0, \ub2e4\ub978 \ud558\ub098\ub294 [\ubc18\uc804](chkRev) \ubaa8\ub4dc\uc785\ub2c8\ub2e4.<\/p>\n<p>\uccb4\ud06c\ubc15\uc2a4\uac00 \ud558\ub098\uc77c \uacbd\uc6b0\uc5d0 \ub300\ud55c \ucc98\ub9ac\uae4c\uc9c0 \ud3ec\ud568\ud588\uc2b5\ub2c8\ub2e4. element name\uc774 chk[] \ud615\uc2dd\uc774\ubbc0\ub85c submit \ud398\uc774\uc9c0\uc5d0\uc11c\ub294 \ubc30\uc5f4\ub85c \ubc1b\uc544\uc11c \ucc98\ub9ac\ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<p>\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"><br \/>\n<html><br \/>\n<head><br \/>\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=euc-kr\"\/><br \/>\n<title>Group Check<\/title><br \/>\n<SCRIPT type=\"text\/javascript\"><br \/>\nfunction checkGroup(obj)<br \/>\n{<br \/>\n   var btnAll = [&#8216;\u25bd&#8217;, &#8216;\u25bc&#8217;];<br \/>\n   var btnRev = [&#8216;\u25b3&#8217;, &#8216;\u25b2&#8217;];<br \/>\n   var chkBox = obj.form.elements[&#8216;chk[]&#8217;];<br \/>\n   var chkLen = chkBox.length;<\/p>\n<p>   switch (obj.name) {<br \/>\n      case &#8216;chkAll&#8217;:<br \/>\n         switch (obj.value) {<br \/>\n            case btnAll[0]: obj.value = btnAll[1]; var chkAll = 0; break;<br \/>\n            case btnAll[1]: obj.value = btnAll[0]; var chkAll = 1; break;<br \/>\n         }<br \/>\n         if (!chkLen) chkBox.checked = chkAll;<br \/>\n         else<br \/>\n            for (var i=0; i < chkLen; i++) chkBox[i].checked = chkAll;<br \/>\n         break;<br \/>\n      case &#8216;chkRev&#8217;:<br \/>\n         switch (obj.value) {<br \/>\n            case btnRev[0]: obj.value = btnRev[1]; break;<br \/>\n            case btnRev[1]: obj.value = btnRev[0]; break;<br \/>\n         }<br \/>\n         if (!chkLen) chkBox.checked = !chkBox.checked;<br \/>\n         else<br \/>\n            for (var i=0; i < chkLen; i++) chkBox[i].checked = !chkBox[i].checked;<br \/>\n         break;<br \/>\n   }<br \/>\n}<br \/>\n<\/SCRIPT><br \/>\n<\/head><\/p>\n<p><body><\/p>\n<form name=\"ContentListForm\" onSubmit=\"return formCheck(this)\"><\/p>\n<table><\/p>\n<tr><\/p>\n<td align=\"center\">\n         <input type=\"BUTTON\" name=\"chkAll\" value=\"\u25bc\"<br \/>\n            onClick=&#8221;checkGroup(this)&#8221; style=&#8221;width:1.5em;height:1.5em&#8221;\/>\n      <\/td>\n<p><\/p>\n<td>=== \uc804\uccb4\uc120\ud0dd\/\uc804\uccb4\ud574\uc81c(Check All\/Check None)<\/td>\n<p>\n   <\/tr>\n<p><\/p>\n<tr><\/p>\n<th><input type=\"CHECKBOX\" name=\"chk[]\" value=\"1050\"\/><\/th>\n<p><\/p>\n<td>test&#8230;.<\/td>\n<p>\n   <\/tr>\n<p><\/p>\n<tr><\/p>\n<th><input type=\"CHECKBOX\" name=\"chk[]\" value=\"1050\"\/><\/th>\n<p><\/p>\n<td>test&#8230;.<\/td>\n<p>\n   <\/tr>\n<p><\/p>\n<tr><\/p>\n<th><input type=\"CHECKBOX\" name=\"chk[]\" value=\"1050\"\/><\/th>\n<p><\/p>\n<td>test&#8230;.<\/td>\n<p>\n   <\/tr>\n<p><\/p>\n<tr><\/p>\n<td>\n         <input type=\"BUTTON\" name=\"chkRev\" value=\"\u25b2\"<br \/>\n            onClick=&#8221;checkGroup(this)&#8221; style=&#8221;width:1.5em;height:1.5em&#8221;\/>\n      <\/td>\n<p><\/p>\n<td>=== \uccb4\ud06c\ud55c \uac83 \ubc18\uc804(Reverse)<\/td>\n<p>\n   <\/tr>\n<p>\n<\/table>\n<p>\n<\/form>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc774\ubbf8 \uadf8\ub8f9 \uccb4\ud0b9\uc5d0 \ub300\ud55c \ub9ce\uc740 \ud574\ubc95\uc774 \ub098\uc654\ub294\ub370, form.elements[&#8216;chk[]&#8217;].length \ubc29\uc2dd\uc744 \uc0ac\uc6a9\ud55c \uac83\uc740 \uc5c6\ub354\uad70\uc694. mozilla1.3, IE5.0\uc5d0\uc11c \ud14c\uc2a4\ud2b8\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub450\uac00\uc9c0 \uadf8\ub8f9 \uccb4\ud0b9 \ubaa8\ub4dc\ub97c \uc9c0\uc6d0\ud558\ub294\ub370, \ud558\ub098\ub294 \uc77c\ubc18\uc801\uc778 [\uc804\uccb4\uc120\ud0dd\/\uc804\uccb4\ud574\uc81c](chkAll)\uc774\uace0, \ub2e4\ub978 \ud558\ub098\ub294 [\ubc18\uc804](chkRev) \ubaa8\ub4dc\uc785\ub2c8\ub2e4. \uccb4\ud06c\ubc15\uc2a4\uac00 \ud558\ub098\uc77c \uacbd\uc6b0\uc5d0 \ub300\ud55c \ucc98\ub9ac\uae4c\uc9c0 \ud3ec\ud568\ud588\uc2b5\ub2c8\ub2e4. element name\uc774 chk[] \ud615\uc2dd\uc774\ubbc0\ub85c submit \ud398\uc774\uc9c0\uc5d0\uc11c\ub294 \ubc30\uc5f4\ub85c \ubc1b\uc544\uc11c \ucc98\ub9ac\ud558\uba74 \ub429\ub2c8\ub2e4. Group Check === \uc804\uccb4\uc120\ud0dd\/\uc804\uccb4\ud574\uc81c(Check All\/Check None) test&#8230;. test&#8230;. test&#8230;. === \uccb4\ud06c\ud55c \uac83 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-798","post","type-post","status-publish","format-standard","hentry","category-papa-php"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=798"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/798\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}