<! Doctype html public "-// w3c // dtd xhtml 1.0 strict // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"><html1/dtd/xhtml1-strict.dtd"> xmlns = 'http: //www.w3.org/1999/xhtml' xml: lang = 'en'> <head> <meta http-equiv = 'content-type' content = 'text/html; charset = utf-8 '/> <meta http-equiv =' content-language 'content =' en-us '/> <title> флажок Select </title> <script type =' text/javascript 'src =' jquery-3.0.0.js '> </script> <script type =' javascript ' > $ (document) .ready (function () {/**** ---- 全选 ---- **** //// $ ('#check1'). On ('raff', function () {// $ ("#check1"). Bind ("click", function () {$ ('#check1'). // 方法一 if (this.Checked == true) {$ ('input'). Prop ('проверено', true);} else {$ ('input'). Prop ('werced', false);} if ($ (". Do"). Text () == "全选") {$ (". } // 方法二 // $('Input=CHECKBOXYN'). /**** ---- 第一列 ---- ****/$ ('#checkl1'). On ('click', function () {// 方法一 if (this.checked == true) {$ ('#check11,#check21,#check31,#chec k41,#check51 '). prop (' cherced ', true);} else {$ ('#check11,#check21,#check31,#check41,#check51 '). prop (' cherced ', false);} // 方法二如上});/**** ---- 第二列 ---- ****/$ ('#checkl2'). On ('click', function () {// 方法一 if (this.checked == true) {$ ('#check12,#check22,#check32,#c heck42,#check52 '). prop (' cherced ', true);} else {$ ('#check12,#check22,#check32,#check42,#check52 '). prop (' checked ', false);} // 方法二如上});/**** ---- 第三列 ---- ****/$ ('#checkl3'). On ('click', function () {// 方法一 if (this.checked == true) {$ ('#check13,#check23,#check33,#c heck43,#check53 '). prop (' cherced ', true);} else {$ ('#check13,#check23,#check33,#check43,#check53 '). prop (' checked ', false);} // 方法二如上});/**** ---- 第四列 ---- ****/$ ('#checkl4'). On ('click', function () {// 方法一 if (this.checked == true) {$ ('#check14,#check24,#check34,#c heck44,#check54 '). prop (' cherced ', true);} else {$ ('#check14,#check24,#check34,#check44,#check54 '). prop (' checked ', false);} // 方法二如上});/****- heck13,#check14 '). prop (' checked ', true);} else {$ ('#check11,#check12,#check13,#check14 '). prop (' cherced ', false);} // 方法二如上});/****- heck23,#check24 '). prop (' cherced ', true);} else {$ ('#check21,#check22,#check23,#check24 '). prop (' cherced ', false);} // 方法二如上});/****- heck33,#check34 '). prop (' cherced ', true);} else {$ ('#check31,#check32,#check33,#check34 '). prop (' cherced ', false);} // 方法二如上});/**** ---- 第四行 ---- ****/$ ('#checkh4'). On ('click', function () {// 方法一 if (this.Checked == true) {$ ('#check41,#check42,#c heck43,#check44 '). prop (' cherced ', true);} else {$ ('#check41,#check42,#check43,#check44 '). prop (' cherced ', false);} // 方法二如上});/**** ---- 第五行 ---- ****/$ ('#checkh5'). On ('click', function () {// 方法一 if (this.Checked == true) {$ ('#check51,#check52,#c heck53,#check54 '). prop (' cherced ', true);} else {$ ('#check51,#check52,#check53,#check54 '). prop (' cherced ', false);} // 方法二如上});}); </script> </head> <body> <table> <tr> <td> <input type = "fackbox" id = "check1"/> <label for = "check1"> 全选 </label> </td> <td> <input type = "checkbox" id = "checkl1"/> <label для = "checkl1"> 第一列 label> </> </> </label for = "checkl1" <td> <input type = "fackbox" id = "checkl2"/> <label for = "checkl2"> 第二列 </label> </td> <td> <input type = "fackbox" id = "checkl3"/> <label для = "checkl3"> 第三列 </label> </td> <td> <input = "checkbobe"/"checkl"/"label> </td> <td> <type =" checkbobe "/"/label> </td> <td> <type = " Для = "CheckL4"> 第四列 </label> </td> </tr> <tr> <td> <input type = "fackbox" id = "checkh1"/> <label for = "checkh1"> 第一行 </label> </td> <td> <input type = "checkbox" = check111 "/> </td> <td> <TD> <checkbox" = "CHACK =" CHACK11 "/> </td> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> <TD> /> </td> <td> <input type = "fackbox" id = "check13"/> </td> <td> <input type = "fackbox" id = "check14"/> </td> </tr> <tr> <td> <input14 "/" id = "checkh2"/> <babel for = "checkh2"> 第二行 lab type = "fackbox" id = "check21"/> </td> <td> <input type = "fackbox" id = "check22"/> </td> <td> <input type = "fackbox" id = "check23"/> </td> <td> <input type = "checkbox" id = check24 "/> </td> <td> <type =" tr. = "CheckH3"/> <label для = "checkh3"> 第三行 </label> </td> <td> <input type = "checkbox" id = "check31"/> </td> <td> <input type = "checkbox" id = "check32"/> </td> <td> <intoptement = "checkbox" id = "check31"/> </td> <td> <input = "checkbox" = "Check33"/> </td> <td> <input = "typobox"/> </td> <td> <type = "typobox"/"/> </td> <td> <type =" typect = " type = "fackbox" id = "check34"/> </td> </tr> <tr> <td> <input type = "fackbox" id = "checkh4"/> <label для = "checkh4"> 第四行 </label> </td> <td> <input type = "checkbox" check41 "/> </td> <td> <inpute =" checkbox "= check41"/> </td> <td> <td> <td> "checkbox" = check41 "/> </td> <td> <td> <td> <td> <td> <td> <td> <td> <td> <td> <td> <td>". /> </td> <td> <input type = "fackbox" id = "check43"/> </td> <td> <input type = "fackbox" id = "check44"/> </td> </tr> <tr> <td> <inpute = "facebox" id = "checkh5"/> <babel for = "checkhh5"> 第五行 lab type = "fackbox" id = "check51" /> < /td> <td> <input type = "fackbox" id = "check52" /> < /td> <td> <input type = "fackbox" id = "check53" /> < /td> <td> <input type = "fackbox" = "Check54" /> < /td> <td> <input type = "id =" Check54 " /> </td> </tr> </tbody> </table> </body> </html>效果图
以上所述是小编给大家介绍的 Флакторы 选中一个另一个 Флакторы 也会选中的实现代码的全部叙述 希望对大家有所帮助 希望对大家有所帮助 如果大家想了解更多内容敬请关注武林网! 如果大家想了解更多内容敬请关注武林网!