<html> <head> <script type="text/javascript"> function getElements() { var x=document.getElementsByName("myInput[]"); alert(x.length); alert(x[0].value); alert(x[1].value); alert(x[2].value); } </script> </head> <body> <input name="myInput[]" type="checkbox" size="20" value='10'/>10 <input name="myInput[]" type="checkbox" size="20" value='20' />20 <input name="myInput[]" type="checkbox" size="20" value='30' />30
Aug 29