Here's my issue: when calling form.serialize() with an ajax call, the value of the clicked button is not returned as part of the data. One workaround for this is to use a hidden field instead of the button value.

However, I want to distinguish between multiple buttons on the same form, so I can't just use a hidden field as it would be returned regardless of which button was clicked. What would be the best method for solving this problem?

Thanks in advance!

Related posts

Recent Viewed