jquery on clicck code example
Example 1: oncheck event jquery
$(".checkbox").change(function() {
if(this.checked) {
//Do stuff
}
});
Example 2: jquery on change
$(document).on('change', 'input', function() {
// Does some stuff and logs the event to the console
});