JavaScript Select all checkboxes checkbox codes for current page
<!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd" >
<html xmlns= "http://www.jzread.com/1999/xhtml" >
<head>
<meta http-equiv= "Content-type" content= "HTML; charset=gb2312 "/>
<title>javascript Select all checkboxes for current page check box code </title>
<script language= "JavaScript" >
function Selectalls (state)
{
var inputs = document.getElementsByTagName ("input");
for (var i=0; i< inputs.length; i++)
{
if (Inputs[i].type = "checkbox")
{
Inputs[i].checked =state;
}
}
}</script>
</head>
<body>
<form id= "Form1" Name= "Form1" method= "Post" action= ""
<input type= "checkbox" name= "checkbox" ID = checkbox/>
<label for= checkbox ></label>
<input type= "Text Name=" TextField "id=" TextField/>
<input type= "button" name= "button" id= "button" value= "buttons" onclick= " Javascript:selectalls (true);/>
</form>
<label for= "TextField" ></LABEL>
</body
</html>