Is there any way in JQUERY to trigger a function when a checkbox has been ticked or unticked?
NOTE: I dont want the "click" function because I use another buttons to tick or untick 20 checkboxes at the same time for example. (and in that case I have only 1 click, but really I need to do the "click" function 20 times, one per each 20 checkbox ticked) I don’t want make loops because I’m using pagination and another stuff, I’m looking for something more simple as a "onTick" function.
The event is onTick or onUnTick but not "onClick"
Is there any solution?
Many thanks!
Solved and 100% working:
$("input[type='checkbox']").change(function() {
// ...
});
I’m thinking maybe onChange would work.