I’m using the ajaxform plugin for jQuery. I have a form with Save and Cancel buttons.
How do I handle multiple buttons so that the Save button posts to a URL and the Cancel button reloads the form container with a read only view from a different URL?
You can use a
for your Save button and a
for your Cancel button.
Your Save button will send the form with ajaxForm and you can set another action to your Cancel button with jQuery: