You can use selectors to do this quite easily - I've posted an example at:

http://jsbin.com/uwaxo/

This has:
1. a checkbox which will select/deselect all others in the page (no matter whether they are in different forms/fieldsets, 2. a checkbox which uses a descendant selector $('#fieldset1 input:checkbox') to explicitly target a given fieldset by ID, and 3. a checkbox which uses its place in the DOM to select checkboxes which are within the same fieldset it is part of.

I hope one of these addresses your problem

on 15/02/2010 13:16 ReynierPM said::
Hi:
I have a fieldset and a set of check boxes inside. I want when I pick one, for example: <input type='checkbox' id='pick_all' value='picked_all' /> Pick all check boxes all the check boxes will be checked. How?

Reply via email to