Facing an issue after attempting to incorporate ajax post in Laravel. Now, all my buttons with type submit are posting to the same route, even if they had no functionality previously. Additionally, a cancel button that used to redirect to the previous screen is also posting to the same route as the other buttons now... Changing the type renders the button non-functional. Removing the script has no effect.
Any suggestions on what might be causing this or how to resolve it?