<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title> Untitled Document </title>
<script src= "Heiheihei/jquery-1.11.2.min.js" ></script>
<body>
<div><input type= "checkbox" value= "QX" id= "QX"/> Select all </div>
<br/>
<div>
<input type= "checkbox" value= "1" class= "ck"/> Polo
<input type= "checkbox" value= "1" class= "ck"/> Maybach
<input type= "checkbox" value= "1" class= "ck"/> Great Wall
<input type= "checkbox" value= "1" class= "ck"/> Lamborghini
<input type= "checkbox" value= "1" class= "ck"/> Ferrari
<input type= "checkbox" value= "1" class= "ck"/> Earthworms
<input type= "checkbox" value= "1" class= "ck"/> Excitation
<input type= "checkbox" value= "1" class= "ck"/> Sara Black
<input type= "checkbox" value= "1" class= "ck"/> Bazar Black
</div>
</body>
<script type= "Text/javascript" >
$ ("#qx"). Click (function () {
var XZ = $ (this). Prop ("checked"); Prop is only used when writing a check box
var XZ = $ (this). Prop ("checked");
$ (". CK"). Prop ("Checked", XZ);
})
</script>
jquery (check box select all)