<!DOCTYPE HTML><HTML><Head><title>Myhtml.html</title><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"><Scripttype= "Text/javascript">window.onload= function() { varFlag=false; document.getElementById (" All"). onclick=function() {flag=!Flag; varItems=Document.getelementsbyname ("Item"); for(varx=0; x<items.length;x++) {items[x].checked=Flag; } }; document.getElementById ("Unall"). onclick=function(){ varItems=Document.getelementsbyname ("Item"); for(varx=0; x<items.length;x++) {items[x].checked=!items[x].checked; } }; }</Script></Head><Body> <Div>Product List</Div> <inputtype= "checkbox"name= "Item"value= " the" />Notebook 3000 Yuan<BR/> <inputtype= "checkbox"name= "Item"value= "2500" />HTC Phone 2500<BR/> <inputtype= "checkbox"name= "Item"value= "8000" />Apple Computer 8000<BR/> <inputtype= "checkbox"name= "Item"value= " the" />IPAD1500<BR/> <inputtype= "checkbox"name= "Item"value= "The " />Toy Car 400<BR/> <inputtype= "button"value= "Total Amount"onclick= "Getsum ()" /> <inputtype= "button"value= "Select All/Select All"ID= "All" /> <inputtype= "button"value= "Reverse Selection"ID= "Unall" /> <spanID= "Sumid"></span></Body></HTML>
Multi-box (select all reverse selection)-html