Hello,
I am currently using an IntegerTextBoxFor in a form. The form has a cancel button which calls resetForm() (actually, it calls a jquery function which calls resetForm(), amongst other things). Upon changing the value in the IntegerTextBox, the cancel button becomes enabled. Pressing the cancel button should reset the value of the IntegerTextBox.
Observed behaviour: Pressing cancel does not change the value displayed in the IntegerTextBox (values in other fields of the form are reset immediately). However, the next time focus is set on the IntegerTextBox, the correct (reset) value is displayed.
Is there a way to make the IntegerTextBoxFor update right away, when the cancel button is pressed?
Thanks for any help!
Luke
Here's the code that I imagine would be relevant:
In the View:
The jquery function: