• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • 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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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