Hi, in my razor view, I have action button, How can I add a javascript function call after current data is sucessfully saved? We can either create new FormData (form) from an HTML form, or create a object without a form at all, and then append fields with methods: The set method removes fields with the same name, append doesnât. Note that the onchange event can be added to any form, and any element, including radio buttons, select elements, and even text fields. Now trigger the submit event on ⦠To prevent a form from submitting, the validating function must be called from the onsubmit event of the