J
JH
Is there a way to combine multiple click events into one relatively short
function?
What i have right now is a form with two sets of checkboxes. Each set is
about 25 check boxes.
When the form loads, the most commonly selected ones are automatically
checked. But to save time, I also added a "select all" button for each set of
check boxes. When you click it, it will auto check each of the 25. Uncheck
it and all 25 are unchecked.
What I want to happen is if I click the "select all" checkbox and then
uncheck one of the 25 options, the "select all" checkbox should unchecks
itself (since they are obviously not all selected anymore).
Now, I know I can go in an add a Click() event for each of the checkboxes
that will toggle it off, but that seems like a very... clunky solution.
Any suggestions?
function?
What i have right now is a form with two sets of checkboxes. Each set is
about 25 check boxes.
When the form loads, the most commonly selected ones are automatically
checked. But to save time, I also added a "select all" button for each set of
check boxes. When you click it, it will auto check each of the 25. Uncheck
it and all 25 are unchecked.
What I want to happen is if I click the "select all" checkbox and then
uncheck one of the 25 options, the "select all" checkbox should unchecks
itself (since they are obviously not all selected anymore).
Now, I know I can go in an add a Click() event for each of the checkboxes
that will toggle it off, but that seems like a very... clunky solution.
Any suggestions?