If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Fire group of checkboxes at once

I have a group of checkboxes that can all be checked at once via the first checkbox which toggles all. However, each of those checkboxes include an onclick-this function (also tried with onchange), but it does not fire at the toggling. How to make this happen?

I am not sure that I understand that. onclick only works onclick (an actual click), not if the checkmark is changed programatically. onchange does not apply to checkboxes. I think you are trying to do something which cannot be achieved.

You will have to use a button and a separate function to fire all the currently checked checkboxes if that is what you want.

Last edited by Philip M; 02-12-2013 at 04:57 PM.

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.