JS Gets the checkbox value method. Share to everyone for your reference. The implementation method is as follows:
"Content-type"Content="text/html; Charset=utf-8"><title>js</title>"JavaScript">function aa () {varR=document.getelementsbyname ("R"); for(varI=0; i<r.length;i++){ if(R[i].checked) {alert (R[i].value+","+r[i].nextsibling.nodevalue); } } }</script><body><form name="Form1"Method="Post"action=""><input type="checkbox"Name="R"Value="1">a<br><input type="checkbox"Name="R"Value="2">b<br><input type="checkbox"Name="R"Value="3">c<br><input type="checkbox"Name="R"Value="4">d<br><input type="checkbox"Name="R"Value="5">e<br><input type="checkbox"Name="R"Value="6">f<br><input type="checkbox"Name="R"Value="7">g<br><input type="checkbox"Name="R"Value="8">h<br><input type="checkbox"Name="R"Value="9">i<br><input type="checkbox"Name="R"Value="Ten">j<br><br><input type="Button"onclick="AA ()"Value="Button"></form></body>JS How to get checkbox values