JavaScript Select all checkboxes
JavaScript
Download (.zip)
<script> function ch(a) { void(d=document); void(input=d.getElementsByTagName('INPUT')); for(i=0;i<input.length;i++) void(input[i].checked=a) } </script> <input type=checkbox onclick="if(this.checked){ch(1)}else{ch(0)}">select all<BR> <input type=checkbox>eg1<BR> <input type=checkbox>eg2<BR> <input type=checkbox>eg3
|