I have a form on which some text fields and two buttons are displayed. The first button is save and second button is reset. I call a function on update button which updates the data using..
$.ajax({
url:"url",
data:something
and so on...});
This function updates the data in DB and alert a success message on success response. I hit the reset button and the old data is filled up in the form but I want the latest updated data in all form fields. How can i do this?