On 05/10/06, Charles Peterson <[EMAIL PROTECTED]> wrote:
> Ya, you inspired my improvement on the functions.
> basically you are checking or unchecking ALL but "ignored" checkboxes on
> the page/form (useful, but not what I wanted)
> I wanted to specify which ones to check,
>
> $.checkallCheckboxClickEvent('.MyCheckAllClass','.CheckTheseClass');
>
> and which ones to click to execute the checkall.
> This way I have a table with checkboxes to select rows with a check all
> checkbox at the top and bottom of the table, the script checks/unchecks based
> on the state of the checkall checkboxes and also updates the checkall
> checkboxes to be in the same state.
>
> basically I didn't want to specify which ones to ignore.
Don't know why I didn't think of that. What I may do in future is
something like this:
var foobar = {
include: ".foo,.bar"
}
// only .foo and .bar
$("#myform").toggleCheckboxes(foobar);
var nobaz = {
exclude: ".baz"
}
// exclude .baz
$("#myform").toggleCheckboxes(nobaz);
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/