I'm looking to fire an updateTotals() function whenever input tags are changed on my form (checkboxes, textboxes).
I'm using Telerik MVC NumericTextBoxes/PercentTextBoxes which ultimately render as tags just like my checkboxes.
I've attempted to apply something like this to my page to do so:
$("#SupervisionRequired").change(updateTotals());
This jQuery fires on the initial page load, but doesn't fire when the Checkbox is changed.
Since I'm using some generic MVC Helpers based on my model (EditorFor, TextBoxFor) I cannot directly apply the onChange event onto these controls. My end goal is to have the updateTotals() function called when a Checkbox is checked/unchecked, and when the user clicks outside of an input tag (for the NumericTextBoxes).
What can I do to change my above jQuery, or add to it to make this possible?