I have made a form with submit and reset buttons.
When i press the reset button automatically all fields get reset. But behaviour of some of my fields behave on the values of others. so the problem is that when a particular field gets reset , it does not triggers a change of state on other fields which depend on it.
I tried using onReset and onClick , but both of them tend to invoke my methods before doing the actual reset. so the state after reset is not modified. Is there any way i can link my method with reset button but cause it to be invoked after reset actually happens.
or else, as by doing a reset the browser resets the values to origninal. Is there a way in javascript to get the original values. If i get them, then also my purpose will be solved.
Thanks in advance.







