|
Title: Checkbox click event Post by: galcott on December 27, 2022, 08:37:03 AM I want to run some code when a checkbox is clicked, but I don't want to use the onChange event because that is triggered when the checkbox state is changed programatically. I want it to execute only when clicked by the user.
I tried this code to bind to the click event: Code: $('#chkCanceled').checkbox('checkbox').bind('click', (function(e) { CalculateSpecialCharge() }));But that produced the error message $.fn.checkbox.methods[_53a] is not a function So is there a way to set a click event on the checkbox? Title: Re: Checkbox click event Post by: jarry on December 29, 2022, 06:27:54 AM Please try this code instead.
Code: $('#chkCanceled').next().on('click', function(e){ |