Skip to content

Instantly share code, notes, and snippets.

🤓
Focusing on the inner nerd

Jagdeep Singh jd-decode

🤓
Focusing on the inner nerd
Block or report user

Report or block jd-decode

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jd-decode
jd-decode / check-uncheck.js
Last active Dec 20, 2015
To check/uncheck all the child checkboxes from a parent checkbox, add the class "check" to the child checkboxes, that you want to be handled from the parent checkbox and add the class "checkAll" to the parent checkbox
View check-uncheck.js
/**
* author Jagdeep Singh <jdecode@gmail.com>
*
* Description:
* To check/uncheck all the child checkboxes from a parent checkbox
* add the class "check" to the child checkboxes, that you want to be handled from the parent checkbox
* and add the class "checkAll" to the parent checkbox
*
* October 30, 2015 : Fixed support for jQuery 1.6+
* Now prop() function is being used instead of the attr() function to get/set checked properties
You can’t perform that action at this time.