JQUERY checkbox Select All, deselect all, reverse method three _jquery

Source: Internet
Author: User
Tags zip
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.