• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 289
  • Last Modified:

jquery expert needed

I have a php script that auto populates an user list with emails.  They are grouped by office departments.  I have been able to create a select all checkbox on the top and bottom of the page successfully but need to know how to create a jquery script when I deselect a group checkbox so that it deselects the select all boxes on the top and bottom of the page.  In turn I need the script to also include when I individually select each user in a group to automatically select the group checkbox when I manually check everyone within that group.  It must also recognize when all groups have been selected (all users in the all groups)  that it is to check the select all boxes at the top and bottom of the page.  Vice versa as well, deselect a user would deselect the group checkbox since all users are not chosen and deselect the select all boxes.

Hope I have not confused you all :)
0
the-miz
Asked:
the-miz
  • 5
1 Solution
 
CKY092Commented:
I threw together an example, based on how I interpreted your question.

It can be viewed here: http://jsfiddle.net/boisebrewer/H4Jwd/
0
 
CKY092Commented:
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
CKY092Commented:
I apologize, first time using jsfiddle.

Final change: http://jsfiddle.net/boisebrewer/H4Jwd/5/
0
 
the-mizAuthor Commented:
You basically got it down to a tee CKY092, only thing that was missing was if I wanted to deselect a Dept by clicking the dept.  Got it to work!  Thanks a lot!
0
 
CKY092Commented:
Glad I could help. Hope that was a successful enough answer to earn the points!
0
 
CKY092Commented:
Did that fully answer your question?
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now