Jquery.checkboxes.zip, and then unzip the referenced page to use the plugin,
This is needless to say! See the specific examples below, in order to let everyone better understand, I directly to implement the function of the code posted:
Copy Code code as follows:
$ ("#myform"). Togglecheckboxes ()//All selected, deselect all, reverse
$ ("#myform"). Togglecheckboxes (": Not (#checkbox1)")/select all, deselect all and uncheck the first
$ ("#myform"). Togglecheckboxes (". Top5", True)/Select all, deselect all and select only the first five, reverse
$ ("#myform"). Checkcheckboxes ()/Select All
$ ("#myform"). Checkcheckboxes (": Not (#checkbox1)");//Select All except the first
$ ("#myform"). Checkcheckboxes (". Top5", true);//Top Five Select all
$ ("#myform"). Uncheckcheckboxes (); Deselect Select All
$ ("#myform"). Uncheckcheckboxes (": Not (#checkbox1)");//deselect all, exclude the first
$ ("#myform"). Uncheckcheckboxes (". Top5", true);//deselect all excluded top five
The CheckBox1 here represents the ID value, the class value represented by TOP5! I will introduce here, interested friends can download their own use, you can also see the official demo!
Download Address: Http://plugins.jquery.com/files/jquery.checkboxes.zip
Demo Address: http://www.texotela.co.uk/code/jquery/checkboxes/
Everybody has any good suggestion or the good method also takes to share, thanks!