<!DOCTYPE HTML><HTMLLang= "en"> <Head> <MetaCharSet= "UTF-8"> <Metaname= "Generator"content=""> <Metaname= "Author"content=""> <Metaname= "Keywords"content=""> <Metaname= "Description"content=""> <title>CheckBox Select all/Reverse Selection</title> <Scriptsrc= "Jquery.js"> </Script> <Scripttype= "Text/javascript">$ (document). Ready (function(){ $("#check"). Change (function(){ //Select All/uncheck all name= "goods" checkboxes $("input[name= ' goods ']"). Prop ("checked", This. Checked); //Select All/uncheck All checkboxes //$ ("input[type= ' checkbox ']"). Prop ("Checked", this.checked); }); }); </Script> </Head> <Body> <Center>Select all/Reverse selection<inputtype= "checkbox"ID= "Check"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/> <inputtype= "checkbox"name= "goods"/><BR/></Center> </Body></HTML>
jquery Select All/Counter check checkbox