日期:2014-05-16 浏览次数:20302 次
<script type="text/javascript"> function checkFour() { var index = 0; while (index < 1) { window.document.the_form.elements[index].checked = true; index = index + 1; } } </script> </head> <body> <form name="the_form"> <input type="checkbox" />1 <input type="checkbox" />2 <input type="button" onClick="checkFour();" /> </form>