I found the solution.
Issue is button id named as submit
(button id="submit"
) conflicting with .submit()
function.
When i change the button id, it works!
Change the button id:
<button id='action'>Submit</button>
^ submit > action or whatever
Top comments (0)