GET instead of POST

I have a very strange issue, I have created an ajax function for a login form with method POST, I have tried this with a simple html file and it works fine, but when I add the login(); function to a button in my project and test it in browser it sends GET request instead… any ideas?

1 Like